Params - Joomla! Forum - community, help and support


hey,
this code index.php:

code: select all

// params
$color         = $this->params->get('templatecolor');
$logo            = $this->params->get('logo');
$navposition      = $this->params->get('navposition');


where stored params ?
is in templatedetails.xml element <fields name="params"> ?

but there definition logo:

code: select all

<field name="logo" type="media" label="tpl_beez2_field_logo_label" description="tpl_beez2_field_logo_desc" />


what mean ? why important ?

sorry "stupid" question, i'm new here :).

thank you.

hrva07 wrote:where stored params ?
parameters strored in database; especially, in table xyz_template_styles (where xyz_ table/database prefix joomla! site).

hrva07 wrote:is in templatedetails.xml element <fields name="params"> ?
no... refer answer of previous question.

hrva07 wrote:but there definition logo:

code: select all

<field name="logo" type="media" label="tpl_beez2_field_logo_label" description="tpl_beez2_field_logo_desc" />


what mean ?
it means defining field named logo , type media. label field available in language string tpl_beez2_field_logo_label , description field available in language string tpl_beez2_field_logo_desc.

review of document http://docs.joomla.org/standard_form_field_and_parameter_types of help.

hrva07 wrote:why important ?
this way have ability create multiple styles same template.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support