HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Block Control ON / OFF per Page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#59268 (In Topic #12902)
Avatar

Fan in action

How do I insert different blocks for certain comcode pages?

If the answer is creating a new page template? How do I do that?

Seems like I am totally missing some of the simple logic here. :(

My goal is to have ABC Blocks on Homepage, and DE Blocks on Most Comcode Pages and NO Blocks on Contact and other defined Pages.

sighO_o

dave
Back to the top
 
Posted
Rating:
#59280
Avatar

Well-settled

Hi,

You can do stuff like…

Code

{$START,IF,{$NOT,{$MATCH_KEY_MATCH,site:tickets,site:foo}}}
blah blah
{+END}

This will make it so "blah blah" does not show on the tickets page or foo page.
If a panel ends up blank by the way, it won't show at all.


Alternatively you can put stuff in different zones, and have completely different sets of panels for those different zones.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: