Editing component config in Joomla -
Editing component config in Joomla -
so on component editing, see "template" list shows on component page of it's own.
i found files each template:
i copied "default" template , made new name own edits
but can't figure out how it's gonna added on ^ list
if($config['config_view_template'] == 1) { $view->setlayout('rounded'); }elseif($config['config_view_template'] == 2) { $view->setlayout('basic'); } $params = jcomponenthelper::getparams('com_xxxxxx'); $paramsarray = $pcparams->toarray(); foreach($paramsarray['params'] $name => $value){ $config[(string)$name] = (string)$value; }
my question is, how add together selection selection alternative on joomla components? (see image)
alternate question: how component add together options?
i tried looking on component's directory, found nothing, seems have jcomponenthelper::getparams('com_xxxxxx')
knows options set time called? upon installation, how register it's options?
not 100% sure modern joomla versions, have had add together params components in past in joomla 1.5 (which 1 of mutual versions out there) help.
most components have main component in components
directory administrator component connected them in administrator
directory under administrator/components/
.
using com_xxxxxx
example—& assuming document root /var/www/
—it here:
/var/www/administrator/components/com_xxxxxx/config.xml
the config.xml
key. , contain items text
item:
<param type="text" name="something_cool" size="36" label="cool thing:" description="a cool thing." />
and if wanted select list:
<param name="cool_list" type="list" default="1" label="select cool options" description="here cool options select."> <option value="0">awesome</option> <option value="1">amazing</option> <option value="2">super amazing</option> </param>
and on construction of config.xml
items this:
<root> <params> <param type="text" name="something_cool" size="36" label="cool thing:" description="a cool thing." /> <param name="cool_list" type="list" default="1" label="select cool options" description="here cool options select."> <option value="0">awesome</option> <option value="1">amazing</option> <option value="2">super amazing</option> </param> </params> </root>
then, if want set default values of that, go manifest.xml
, somewhere near bottom—at to the lowest degree when did this—will list of param defaults can set this:
<params> <param name="something_cool" default="" /> </params>
i have used defaults in manifest.xml
text
entries since seems default can set list
values without that, experiment.
joomla
Comments
Post a Comment