You are here: Documentation > JYAML for Joomla! 1.5 > Overview > Body CSS Classes

Body CSS Classes

As of JYAML version 3.0.5 additional CSS Classes are added to the <body> Element. This allows a more individual design.

If in the source code of the JYAML Template are no Body-CSS-Classes visible (e.g. an update), check whether the following code in the HTML template (/html/index/) is present:
<body<?php echo $jyaml->getBodyClassString(); ?>>

Components of the CSS classes

Index Template Name

Syntax: tmpl-[html_file]
Examples: tmpl-index, tmpl-fullpage, tmpl-gfxborder

Menü Item (Itemid)

Syntax: itemid-[menuitem_id], parent-itemid[parent-menuitem-id]
Examples: itemid-1, itemid-21, parent-itemid-3, parent-itemid-21

parent-itemid is inserted only if the current menu item has one or more parent menu items.

Component Parameters

Syntax: [com_component]-[view|task]-[value]
Examples: com_content-view-article, com_content-task-edit, com_weblinks-view-categories

Artikel Detailpage (com_content)

Syntax: article-[id]
Examples: article-12, article-184

Section and Category

Syntax: category-[id], section-[id]
Eyamples: category-5, section-14

If available, the section and category also included in the article detail page.

Browser und Client Plattform

Syntax: browser-[engine], browser-plattform-[system]
Examples: browser-mozilla50, browser-konqueror53410, browser-msie80, browser-plattform-win

Language Code

Syntax: lang-[code]
Examples: lang-de, lang-en, lang-fr

The language code only added in multilingual sites.(Only tested with JoomFish).