Custom site-configuration - JYAML - Joomla! Templates mit Yaml

Custom site-configuration

cutom-xml.gif

With this function you can assign a configuration of single-pages or to a complete area.

You find the configuration files in the respective design overview. There you can create new files and available edit and delete.

A custom configuration file already is in the default design with the name force_1column_col3.xml. This is at the URL-Parts option=com_fireboard, option=com_joomlaboard and task=edit loaded. The force_1column_col3.xml removes for example the positions of #col1_content and #col2_content. The rest is taken or inherited by the design configuration. This has the consequence that only one column (namely #col3) can be seen.

Operation

A URL or Uri himself into several fragments. These individual fragments are selected and evaluated. The individual fragments get separated by the ampersand (&).

One does not see these fragments at mostly any more SEF-sURL switched on. However, this does not matter since the individual parts get internal and not questioned directly by the address bar.

Since the talk is in the configuration of URL-Parts I only use this name instead of of fragment followingly.

Example:
  • URL / URI: index.php?option=com_content&view=category&layout=blog&id=1&Itemid=50 
  • URL-Parts:
    • option=com_content
    • view=category
    • layout=blog
    • id=1
    • Itemid=50

The URL-Parts are this one limited in the configuration compared. All parts do not have to be assigned. As soon as a part which does not correspond to the current value is, however, found, it is evaluated as "false".

At the evaluation a priority comparison still takes place in addition after a point system. In the example at most 5 points can be reached if all URL parts agree with the configuration. The higher the priority is the more points. The configuration with the highest priority also is loaded.

Everything sounds more complicated than it is. Simply not thinking about it so much. ;) 

Choises

The JYAML-Component already provides some preselection possibilities all areas of Joomla!, this one for the most part should cover.

It can be selected:

  • Menulink
  • Content
  • Category
  • Section
  • Component
  • URL-Prat - Fragments by comma separated (manual petition, if none of the previous points is chosen).

If you make a selection, a description text is suggested automatically.

URL-Parts - Fragments by comma separated

You can manually enter a URL-Part (a fragment) here. Become several URL-Parts with comma separated. If you liked to assign a configuration at all category views for example which shall be independent of all other aspects, then you only can for example "view = category" enter.

How can i find current URL-Parts?
Swith on debugmode and look in the JYAML-PHP-Objekt to [url_parts]. All possibles are respectively URL parts of the current page listed there.

Assignin the custom configuration

  • Step 1: Marking one of the Choises or enter a URL-Part
  • Step 2: Entering a description
    • A text is inserted as a suggestion automatically if a choice is dialed.

  • Step 3: Including submenus
    • If select, then the same configuration is assigned to all sub-menus. If another file, however, has a higher priority, this is then loaded.

    • The option is only chosen when an Itemid is available in the URL-Part.

  • Step 4: Selecting configuration file
    • Select the desired configuration here. Configuration files can manage you in the respective design overview.

  • Step 5: Adding the custom configuration
    • Click on the button and the settings are in the list of existing attached below.