Wednesday, 15 April 2015

php - Joomla 2.5 xml fields - store values after form submit -



php - Joomla 2.5 xml fields - store values after form submit -

i have typical xml file many field example

<field type="custom" name="city" id="city" label="city" size="40"/>

in view display field - fine. i'm using state filtering on field. model populatestate():

$filter = $app->input->get('city'); $this->setstate('filter.city', $filter);

the problem that, field doesn't has value after form submit (form has get method). can't write in field value $this->getstate('city') because it's xml file. maybe has solution... thinking js, want have php solution.

i'm not 100% clear on you're asking, if you're using standard jform , inserting this:

echo $this->form->getinput('articletext');

the it's field's name in form isn't city, it's more like:

`jform[articletext]`

if can add together more of xml file, can see grouping etc , php used display form can help pin downwards exactly, help if tell version of joomla you're using.

php joomla

No comments:

Post a Comment