Params

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
hrva07
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue Aug 28, 2012 7:46 am

Params

Post by hrva07 » Mon Nov 26, 2012 1:35 pm

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.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28202
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Params

Post by imanickam » Mon Nov 26, 2012 2:20 pm

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.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

hrva07
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue Aug 28, 2012 7:46 am

Re: Params

Post by hrva07 » Mon Nov 26, 2012 2:29 pm

Thank you, imanickam.


Locked

Return to “Templates for Joomla! 2.5”