Page Message
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Page Message module allows administrators to create messages that appear on specific pages. Messages might include rationales, warnings, relationships, ar anything else that might be helpful to page users. The module is envisioned to be of use for admin pages, but any page on the site can get a message.
Examples:
URL: admin/structure/block/manage/block/1/configure
Message: Don't modify this block without consulting Jan.
URL: admin/structure/types/manage/product-news
Message: See specification for this content type in Jira ticket PM-3456.
URL: admin/structure/views/view/backlinks/edit
Message: Note: The query for this view is altered in modules/alter/alter.module
There are two components for each page message.
1. The page URL. This is the 'clean' relative URL for the page you want to show a message on. URL aliases don't work in this field. A message defined for a clean URL, however, will show up whether you visit it using the URL alias or the clean url.
2. The message. In general, messages should be brief. If there is a lot to say, include a link to another page with a full discussion. Links are arbitrary and can point anywhere, including off-site. (Note: You must use 'Filtered HTML' or similar in the textarea for links to work. )
The message is shown on every visit to the page. If you can access the page, you see the message.
Messages are placed on the page with drupal_set_message(). This is the same method used by Drupal for warnings and informational messages. Page Message messages have their own styling to differentiate them from Drupal messages.
Also see Site Memos for a site-wide approach.
Drupal 8 beta version. This is functionally very similar to the D7 version. It is in beta pending feedback, tests, better css handling, better README.txt, and better help.
