News module - how prevent {news} tag being deleted/edited...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: News module - how prevent {news} tag being deleted/edite

Post by JohnnyB »

You can try a few things to see what works best for you.
1) Rry placing it into a snippet using the Snippets module and then place the snippet tag in your template instead of the {News} tag.

2) Use this as the first line in your template before everything else:
{capture assign='NewsContent'}{News}{/capture}
and then place, {$NewsContent} where you want the {News} tag in your template

3) If you have to have it inside of page content, surround it with Smarty comments to warn editors:
{* *** Do Not Remove *** *}{News}{* *** Do Not Remove *** *}
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Locked

Return to “CMSMS Core”