Chapter 7. Tag Library

Table of Contents

1. Mandatory Tags
1.1. editor
1.2. pagehead
1.3. pagebody
2. Page Design Tags
2.1. setlocale
2.2. defaultcss
2.3. contextpath
2.4. themepath
2.5. adminpath
2.6. searchfile
3. Page Elements Tags
3.1. pagetitle
3.2. module
3.3. moduletitle
3.4. adminmenu
3.5. mailform
3.6. feed
4. Navigation Tags
4.1. listmenu
4.2. alibmenu
4.3. simplemenu
4.4. tigramenu
4.5. breadcrumbs
4.6. links
4.7. langmenu
5. Information Tags
5.1. info
5.2. user
5.3. lastmodified
6. Conditional Tags
6.1. iflang
6.2. ifuser, ifnotuser
6.3. ifediting, ifnotediting
6.4. ifmodule, ifnotmodule
6.5. ifmailform, ifnotmailform
6.6. ifindexed, ifnotindexed
6.7. ifadminpage, ifnotadminpage

MeshCMS provides a library of custom tags to ease the creation of themes. Some are mandatory, others can be useful in many situations. The following sections explain each tag separately. As an example, the <mesh:tagname> format is used, which implies the following declaration at the beginning of the theme file:

<%@ taglib uri="meshcms-taglib" prefix="mesh" %>

Mandatory tags are: editor, pagehead and pagebody.