Documentation
Shortcodes
Shortcodes can be inserted anywhere (article text, custom html module, php file). The shortcodes render the subscription boxes that allow users to subscribe to various objects (articles, categories, tags, authors).
A shortcode has the following format:
{mcnotifications title="CUSTOM_TEXT" layout="default" option="com_content" item="ITEM_ID" item_params="f,b,e,t,u" category="CATEGORY_ID" category_params="f,b,c,e,t,u" tag="TAG_ID" tag_params="f,b,e,t,u" author="AUTHOR_ID" author_params="f,b,e,t,u"}
Parameters
title
title="CUSTOM_TEXT"
Optional
Adds a custom title to the subscription box. Replace CUSTOM_TEXT with your own text. Do not use spaces, only underscores. You can translate this text in Extensions > Language(s) > Overrides.
layout
layout="default"
Optional
Defines the subscription box layout. Can be default or dropdown.
option
option="com_content"
Required
Defines the object component. Enter com_content for Joomla content.
item
item="ITEM_ID"
Optional
The ID of an article. If you enter the value auto instead of a specific ID, the extension will automatically find the ID of the article. Note that auto works only if the currently viewed page is an article page.
item_params
item_params="f,b,e,t,u"
Optional Required if item is defined in the shortcode.
Defines what will be displayed in the subscription box in the item section.
f: Enables the Follow buttonb: Enables the Block buttone: Enables the Receive emails checkboxt: Displays the article titleu: Enables the Unsubscribe button (for non logged in users)
category
category="CATEGORY_ID"
Optional
The ID of a category. If you enter the value auto instead of a specific ID, the extension will automatically find the ID of the category. Note that auto works only if the currently viewed page is a category page.
category_params
category_params="f,b,c,e,t,u"
Optional Required if category is defined in the shortcode.
Defines what will be displayed in the subscription box in the category section.
f: Enables the Follow buttonb: Enables the Block buttonc: Enables the Follow children checkboxe: Enables the Receive emails checkboxt: Displays the category titleu: Enables the Unsubscribe button (for non logged in users)
tag
tag="TAG_ID"
Optional
The ID of a tag. If you enter the value auto instead of a specific ID, the extension will automatically find the ID of the tag. Note that auto works only if the currently viewed page is a tag page.
tag_params
tag_params="f,b,e,t,u"
Optional Required if tag is defined in the shortcode.
Defines what will be displayed in the subscription box in the tag section.
f: Enables the Follow buttonb: Enables the Block buttone: Enables the Receive emails checkboxt: Displays the tag titleu: Enables the Unsubscribe button (for non logged in users)
author
author="AUTHOR_ID"
Optional
The ID of an author.
author_params
author_params="f,b,e,t,u"
Optional Required if author is defined in the shortcode.
Defines what will be displayed in the subscription box in the author section.
f: Enables the Follow buttonb: Enables the Block buttone: Enables the Receive emails checkboxt: Displays the author nameu: Enables the Unsubscribe button (for non logged in users)