Add post custom field
Posted: Thu May 12, 2016 10:19 am
Hi,
I want to add a new field to the content?
Thanks.
I want to add a new field to the content?
Thanks.
Code: Select all
private $dbFields = array(
'title'=> array('inFile'=>true, 'value'=>''),
'content'=> array('inFile'=>true, 'value'=>''),
'description'=> array('inFile'=>false, 'value'=>''),
'username'=> array('inFile'=>false, 'value'=>''),
'status'=> array('inFile'=>false, 'value'=>'draft'),
'tags'=> array('inFile'=>false, 'value'=>array()),
'allowComments'=> array('inFile'=>false, 'value'=>0),
'date'=> array('inFile'=>false, 'value'=>''),
'dateModified'=> array('inFile'=>false, 'value'=>''),
'coverImage'=> array('inFile'=>false, 'value'=>''),
'source'=> array('inFile'=>false, 'value'=>'')
);
Code: Select all
HTML::formInputText(array(
'name'=>'source',
'value'=>'',
'class'=>'uk-width-1-1 uk-form-large',
'placeholder'=>'Source link'
));
I need document this kind of thingEdi wrote:Thank you, Diego!
So simple... Never thought of the possibilities of arrays.