Skip to content

blastg/CMSMS_plugin_Tag_Related_Pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

CMSMS_plugin_Tag_Related_Pages

##CMSMS plugin for tagging related pages

###What does this do?

This plugin will create relations between pages in CMS Made Simple, simply adding one or more tag to the required page. ###How to use:

Copy function.tag_related_pages.php file to "/plugins" directory of your site.

Then, in your main template, add this instruction:

{$tag="{content block='tag' oneline='true' wysiwyg='false'}" scope=global}

Create a new content block named related_pages (Layout - Design Manager - Templates - Create a new Template - Core::Generic) with this content (customize according you preferences):

{tag_related_pages tag="{page_attr key="tag"}"}
{if $related_pages ne ''}
<strong>Related pages:</strong><br />
<ul>
	{foreach $related_pages as $related_page}
	<li>{cms_selflink page="{$related_page}"}</li>
	{/foreach}
</ul>
{/if}

Show "related pages" in single pages (or in template) adding this instruction to target page:

{global_content name='related_pages'}

Add one (or more) comma separated tag(s) in "tag" field of your related pages, for example:

sea, vacation, holidays

or

sea

Tested with CMS Made Simple 2.1.3

function.tag_related_pages.php v0.1 (beta)

About

CMSMS plugin for tagging related pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages