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.


To block...or not to block?

Login / Search

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

Community saint

That is the question! lol

Can some pages have the left or right side blocks and other pages not?

For instance…

Home page has the left, center, and right blocks.
About is just the center, no side blocks.
Products/Services has center and right but no left block.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#52587
Avatar

Well-settled

Hi Eric

You can do this kind of thing using Tempcode…

Code

{+START,IF,{$EQ,{$PAGE},a,b,c}}
Comcode
{+END}
In this, the Comcode only shows on either pages 'a', 'b', or 'c'.
You can do much more sophisticated things too, that's just a simple example.
Back to the top
 
Posted
Rating:
#52617
Avatar

Community saint

Thank you.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#52622
Avatar

Honoured member

very nice,  I was pondering this very thing.

i could take this and even display ads!

Going to go read up some more on comcode.

thx duer911  :thumbs:
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: