The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Params
PostPosted: Mon Nov 26, 2012 1:35 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 28, 2012 7:46 am
Posts: 17
Hey,
this code is from index.php:

Code:
// 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:
<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.


Top
 Profile  
 
 Post subject: Re: Params
PostPosted: Mon Nov 26, 2012 2:20 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 22112
Location: Chennai, India
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:
<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_field_and_parameter_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
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
 Post subject: Re: Params
PostPosted: Mon Nov 26, 2012 2:29 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 28, 2012 7:46 am
Posts: 17
Thank you, imanickam.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group