Документация InstantCMS

для администраторов и разработчиков

Инструменты пользователя

Инструменты сайта


en:manual:menu:special

Special Menu Items

When specifying a special tag as a menu item link, InstantCMS can perform special actions with this item.


Link Goal / Action CSS class
users/{user.id} My profile profile
{messages:view} My messages messages messages-counter ajax-modal
{messages:notices} Notifications info notices-counter ajax-modal
{moderation:panel} Moderation checklist
{groups:my} My groups (clubs) group
{content:add} Add content add
{content:private_list} List of private messages lock
comments Comment list
{admin:menu} Control panel cpanel
users Users group
auth/login Log in ajax-modal key
auth/register Registration user_add
auth/logout Log out logout

User ID Substitution

If a link contains the {user.id} tag, the tag is substituted by current user ID (by 0 for unauthorized users).

For example, current user profile link may look like this: users/{user.id}


Add Content

Tag: {content:add}

The menu item gets nested menu items each of which leading to certain content add page. Herewith, current user access rights are taken into account. For example, if a current user has privileges to create such content as «Articles», «Posts» and «Photo albums», the generated items will look like this:

  • Add article
  • Add post
  • Add photo album

Content Categories

Tag: {content:name}, where name is the system name of any content type

Example: {content:articles}

The menu item gets nested menu items that open the categories of the specified content. The hierarchy of the generated menu items corresponds to the hierarchy of categories.


Private Content Items

Tag: {content:private_list}

The menu item gets nested menu items that open lists of content items with «show only to friends» access type. The lists are shown only to authorized users. Currently authorized user will see all friends’ entries with «show only to friends» access type.


Private Messages

Tag: {messages:view}

The menu item opens the private messages window. When there are new messages, a counter appears next to the item.


Personal Notifications

Tag: {messages:notices}

The menu item opens a notification window. When there are new notifications, a counter appears next to the item. The menu item hides, if there are no unread notifications.


My groups (clubs)

Tag: {groups:my}

The menu item gets nested menu items that open profiles of groups, the member of which current user is.


Moderator’s Panel

Tag: {moderation:panel}

The menu item opens the moderator’s panel. The item is not shown to a user, if one is not a moderator of any content type. If there are no entries pending moderation, the item is not shown either. If there are entries, their number appears next to the item.


Control Panel

Tag: {admin:menu}

The menu item gets nested items that coinside with the menu items in the control panel. The parent item gets a link to the control panel.


Back to Menu Management

en/manual/menu/special.txt · Последнее изменение: 26.04.2016 21:52 — murlysja

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki