Layout is the pattern of the catalog, catalog item, edit form or detailed page

Withing layout you may use HTML tags, Javascript, CSS styling and ExtraSearch Tags.

ExtraSearch tags will be replaced with what they represents.

There are 3 types of extrasearch tags:

Tags to get table data:

*fieldname* - To place a field title of the current table. It detects current language and returns the title according to it. This works in all layouts.

[fieldname] — Field value or input box for the filed in edit form.

General tags

{the_tag} - there is tags to get some system info, item (record id), buttons, tool bar, PHP script etc..

Field Value If/not statements

[_if:fieldname] [_endif:fieldname] - if field (fieldname) of current record is empty then all between first tag and it's tail will be erased.

[_ifnot:fieldname] [_endifnot:fieldname] - Negative statement. If field (fieldname) of current record is NOT empty then all between first tag and it's tail will be erased.

More complex structures work out with JavaScript.

Example:

<script>

var a="[field_name]";

if(a>56)

{

document.write("some thing here");

}

</script>

Special If/not statements

[_if_published] [_endif_published] - if the record is not published then all between first tag and it's tail will be erased.

[_ifnot_published] [_endifnot_published] - Negative statement. If the record is published then all between first tag and it's tail will be erased.

[_if_usertype:user_group] [_endif_usertype:user_group] - erase all between this tags if the current user type (group) is not user_group

[_ifnot_usertype:user_group] [_endifnot_usertype:user_group] - erase all between this tags if the current user type (group) is user_group

Example:

[_if_usertype:Registered]

<p>This will be visible for "Registered" and "Super Users"</p>

[_endif_usertype:Registered]

[_if_usertype:Super Users]

<p>This will be visible for "Super Users" only</p>

[_endif_usertype:Super Users]

[_ifnot_usertype:Registered]

<p>This will be visible to anybody except "Registered" users</p>

[_endifnot_usertype:Registered]

*Why I see field names in edit from in front-end instead of input boxes or it's title or value e.t.c.
- You probably do not have these fields in the table. Add the fields or check, may be there is a mistake.

JoomlaBoat.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters
the trademark holder in the United States and other countries.