Page 1 of 1
SOLVED: ListIt2FEEdit
Posted: Mon Jul 14, 2014 12:46 pm
by jd447
Hello!
I'm trying to customize a ListIt2FEEdit template. I would like to put a default value in the title input field.
Code: Select all
<p class="pageinput">{$feedit_mod->CreateInputText($actionid, 'title', $item->title, 50)}</p>
and here the output i would like to achieve:
Code: Select all
<input type="text" class="cms_textfield" name="m0f8d5title" id="m0f8d5title" value="default_value" size="50">
any idea?
Re: ListIt2FEEdit
Posted: Mon Jul 14, 2014 2:03 pm
by chandra
You can do such things in Smarty templates but I don't think that the module will parse an unknown field.
Not sure what you really want but a way to the goal could be the use of replace modificator.
Re: ListIt2FEEdit
Posted: Tue Jul 15, 2014 11:09 pm
by gocreative
You could probably achieve this fairly easily with jQuery.
Re: ListIt2FEEdit
Posted: Wed Jul 16, 2014 5:58 am
by jd447
exactly what I did!

Re: SOLVED: ListIt2FEEdit
Posted: Sat Aug 02, 2014 12:13 am
by psy
Code: Select all
{$feedit_mod->CreateInputText($actionid, 'title', $item->title, 50)}
This is straight out of the CMSModule API documentation to create a text input field.
CreateInputText (line 1955)
Returns the xhtml equivalent of an input textbox. This is basically a nice little wrapper to make sure that id's are placed in names and also that it's xhtml compliant.
string CreateInputText (string $id, string $name, [string $value = ''], [string $size = '10'], [string $maxlength = '255'], [string $addttext = ''])
string $id: The id given to the module on execution
string $name: The html name of the textbox
string $value: The predefined value of the textbox, if any
string $size: The number of columns wide the textbox should be displayed
string $maxlength: The maximum number of characters that should be allowed to be entered
string $addttext: Any additional text that should be added into the tag when rendered
Change the code in your template to add whatever additional info you want included in the tag.