Phoca

Phoca

Component's Parameters settings, in different locations, using Itemid in Joomla! 1.5

In Joomla! 1.5 there are two different locations where you can change the parameters of a Joomla! component:

Global Configuration and Parameter Components

These can be found like this:

  • Global Configuration: Components » Specific component (e.g. Phoca Gallery) » Parameters » Global Configuration
  • Parameters Component: Menus » e.g. Main Menu » Specific menu link (e.g. Phoca Gallery - My Holiday Pictures) » Parameters Component
If you are using e.g. Joom!fish component on your site, then there are three locations where you can change the parameters. You can change the parameters in translated menu links in Joom!fish too.

 

Important:

Parameters Components override Global Configuration parameters.

 

Global Configuration

Let's assume that you want to install a component to display e.g. a square in your choice of color on your Joomla! 1.5 site (This is only an example component, but the behaviour is valid for all Joomla components). You want the square to be blue. So you set the blue color for this component in the component's Global Configuration. If you create a menu link to this component, when the user clicks on this link, he will get your blue square.

Parameters Component

What happens if you want to create two menu links to the same component and you want the first link to display a green square and the second link to display a red square?

If you just use Global Configuration, without Joomla! 1.5 URL's parameter, you get:

  • First Menu linkblue square will be displayed (Color values will be loaded from the Global configuration)
  • Second Menu linkblue square will be displayed (Color values will be loaded from the Global configuration)

But if you use the Parameters Component then…

With Joomla! 1.5 URL's parameter, which is automatically created on your site when component (e.g. Phoca Gallery or our fictional component which produces colored squares) is installed, you get:

  • First Menu linkgreen square will be displayed (Color values will be loaded from Parameters Component because it overrides the Global configuration)
  • Second Menu linkred square will be displayed (Color values will be loaded from Parameters Component because it overrides the Global configuration)

The URL parameter Itemid used in Joomla! 1.5 identifies the menu link on your site and refers this menu link to the Parameters Component. By using the Parameters Component you can set different values for different menu links and in this example you can have different menu links referring to one component.

The Parameters Component overrides the Global configuration for a specific menu link. If you want to use the parameters from the Global configuration, you can select the 'Use Global' value in the Parameters Component for every parameter. Obviously then the Global Configuration's parameters will be not overridden by the Parameters Component's parameters, so in our example, the blue square would be displayed.

But be aware, there is one exception. If the Parameter Component's parameter is saved in Input form 'Text' or 'Text Area' (and not as Input form 'Select box' or 'Radio Button'), you will not be able to use the 'Use Global' value.

alt

In this case, the Parameter Component's parameter will override the Global Configuration's parameter every time. So where our component uses Input form 'Text' for setting a color and you set e.g. '#3333cc' (blue) in Global configuration and e.g. ‘#fc0000’ (red) in Parameters Component, you always get the red square in your component. This is important to remember if you have been trying out different color schemes and decide make 'Global' changes. You will have to go back to each Menu's Parameter and change the color manually.

Phoca extensions are using a small hack. It means if you leave the field blank in Parameters component, then the Global Configuration's parameter will be used. This behaviour is different to other Joomla! components and allows you to make "use global" working for Text and Text area input fields.

Phoca News Gadget

Phoca Facebook Phoca on Facebook:
Phoca Twitter Phoca on Twitter:
Phoca - Follow us on Twitter
Phoca Google Plus Phoca on Google+:
Phoca - Follow us on Google Plus
Phoca YouTube Phoca on YouTube:
Phoca on YouTube
Phoca Pinterest Phoca on Pinterest:
Phoca on Pinterest
Phoca News Phoca News:
Phoca News RSS
Phoca Latest Files Phoca Latest Files:
Phoca News RSS

Phoca Forum - Latest Topics