Strip content and GCBs

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Joseph777
Forum Members
Forum Members
Posts: 206
Joined: Wed Mar 16, 2011 9:13 am

Strip content and GCBs

Post by Joseph777 »

Hello

I want compress html code with strip tag and i have few questions:

1. Is it correct to compress content with this code?: {content|strip}

2. Can I use strip in Menu generator too?

3. Must I use strip in every Global content block or I can only put strip on top and bottom of template?

4. Which code do i have to use?
a)

Code: Select all

{strip} 
GCB content
{/strip} 
b)

Code: Select all

{strip} 
{global_content name='abc'}
{/strip} 
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: Strip content and GCBs

Post by blackhawk »

2), yup. I did for previous projects.

As far as 1) and 3),strip tags work great from within block sections, including your menu manager pages.
Post Reply

Return to “The Lounge”