Page 1 of 1

Params

Posted: Mon Nov 26, 2012 1:35 pm
by hrva07
Hey,
this code is from index.php:

Code: Select all

// get params
$color			= $this->params->get('templatecolor');
$logo				= $this->params->get('logo');
$navposition		= $this->params->get('navposition');
Where are stored this params ?
Is that in templateDetails.xml element <fields name="params"> ?

But there is only this definition for logo:

Code: Select all

<field name="logo" type="media" label="TPL_BEEZ2_FIELD_LOGO_LABEL" description="TPL_BEEZ2_FIELD_LOGO_DESC" />
What exactly does it mean ? Why is that important ?

Sorry for the "stupid" question, I'm new here :).

Thank you.

Re: Params

Posted: Mon Nov 26, 2012 2:20 pm
by imanickam
hrva07 wrote:Where are stored this params ?
Parameters are strored in the database; especially, in the table xyz_template_styles (where xyz_ is the table/database prefix for your Joomla! site).
hrva07 wrote:Is that in templateDetails.xml element <fields name="params"> ?
No... Refer to the answer of the previous question.
hrva07 wrote:But there is only this definition for logo:

Code: Select all

<field name="logo" type="media" label="TPL_BEEZ2_FIELD_LOGO_LABEL" description="TPL_BEEZ2_FIELD_LOGO_DESC" />
What exactly does it mean ?
It means that you are defining a field named logo and its type is media. The label for the field is available in the language string TPL_BEEZ2_FIELD_LOGO_LABEL and the description for the field is available in the language string TPL_BEEZ2_FIELD_LOGO_DESC.

Review of the document http://docs.joomla.org/Standard_form_fi ... eter_types could be of help.
hrva07 wrote:Why is that important ?
This way you have the ability to create multiple styles for the same template.

Re: Params

Posted: Mon Nov 26, 2012 2:29 pm
by hrva07
Thank you, imanickam.