5. Information Tags

5.1. info

This tag shows some info about the website or the CMS. Values are defined in the Configuration page.

Attributes:

  • id: indicates which site information must be shown.

    Possible values are name (default), host (or domain), description, keywords, author or authorurl.

    Alternatively, you can retrieve some system info using meshcms to retrieve application name and version info, charset to get the system charset or lang to get the page language.

5.2. user

This tag shows some info about the current user.

Attributes:

  • id: indicates which user information must be shown. Value can be username, e-mail (or email), or another user detail (salutation, name, surname, company, address, zip, city, state, country, phone_number, fax_number, mobile_phone_number). If id is not specified, the value displayed depends on what information is available.

Example 7.9. Welcoming a user when he has logged in

<mesh:ifuser>Welcome <mesh:user />!</mesh:ifuser>

5.3. lastmodified

Writes the date of the last modification of the current page. Usually this is the last modification time of the HTML file, but some modules can change that value. For example, if the gallery module is used in the page, and an image is newer than the HTML file, its modification time will be used, provided that the module tag is located before this tag in the theme. This means that it is recommended to put this tag at the end of the page.

Attributes:

  • date: the format of the date. Possible values are normal (default) and full;

  • mode: since usually it makes no sense to use this tag for server-side pages (e.g. JSPs), you can set this attribute to static (default) to show the date for static files only, or you can use all to always show it;

  • pre: a text to be added before the date. It won't be added if the date is not shown;

  • post: a text to be added after the date. It won't be added if the date is not shown;

  • update: if true, the last modification time of the page file will be modified according to the displayed value (default false).