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.


Main_include_module anomolies?

Login / Search

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

Community saint

Not sure if this is a bug, design, operator error or limitation so I figure I'd post it here and see where it goes. Two parts to this:

1) Using the main_include_module in a comcode page and pointing it directly at a catalogue entry causes massive carnage and in my case, rendered the catalogue entry toast and I had to delete and re-enter; re-created this a few times. I either got a blank screen or just some text on the screen with no formatting, hit or miss. Clearing cache did not help. Pointing the block at a catalogue category works dandy.

2) Oh I lost some precious hair on this one lol. When using the TEMPCODE $EQ directive to match a page (in my case I was trying to show or not show a menu based on the page; page in question is entitled "organizations") and that page has the main_include_module block somewhere on it, the $EQ directive must have the page name of the module the block is pulling in addition to the comcode page name itself. *chuckle*, this was a dog for me as the "organizations" page actually pulls together via include tag multiple other pages.

Update: Item #1 might have been operator error with some leftover includes when I migrated the site a few weeks ago. OCP's brilliant loop detection code saved me from trying to be too "clever". ;) When I get a few moments I'll try to systematically recreate item #1 and update the post.


Last edit: by SoccerDad

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#69376
Avatar

2- there's a block option to determine whether to use the 'real' page or not
Generally though this technique is a bit of a last resort, it's not 100% perfect. I'd seek alternatives first, like including other blocks inside the template of the true screen and/or changing zone start pages.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69377
Avatar

Community saint

Great Chris, good suggestions, thanks!

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#69380
Avatar

Community saint

P.S. for others reading: OCP's match-key system worked AOK for me in this instance so a good tool to keep in mind..*grin*, always more than one way to skin the proverbial cat with ocPortal!

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: