SOLVED: ListIt2FEEdit

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
jd447
Forum Members
Forum Members
Posts: 134
Joined: Wed Jun 20, 2007 7:06 am
Location: geneva

SOLVED: ListIt2FEEdit

Post 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?
Last edited by jd447 on Wed Jul 16, 2014 5:58 am, edited 1 time in total.
chandra

Re: ListIt2FEEdit

Post 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.
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am
Location: Brisbane, Australia

Re: ListIt2FEEdit

Post by gocreative »

You could probably achieve this fairly easily with jQuery.
User avatar
jd447
Forum Members
Forum Members
Posts: 134
Joined: Wed Jun 20, 2007 7:06 am
Location: geneva

Re: ListIt2FEEdit

Post by jd447 »

exactly what I did! ;)
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: SOLVED: ListIt2FEEdit

Post 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.
Post Reply

Return to “Modules/Add-Ons”