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.


Questions about code structure

Login / Search

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

Fan in training

I don't know if this is the right forum for this question or not but here it goes…  Where would I locate the script with the LOAD_PANEL function in it?  While I'm on that topic…  Which file would I need to hack up in order to be able to edit those programmatically? eg delete_funk(panel_left_custom_for_this_page_in_this_zone.txt … and then afm_make_file(the_same_again_but_different ?  I'm looking to automate that process and use them for top, middle, banner, and a bottome section that all each only have one block in them that I can edit from both a script and a database.  I've got most of it down, I just need to be able to locate these two or probably more like twenty pages…  Any advice?  I appreciate it man, this really is the best CMS out.
Back to the top
 
Posted
Rating:
#104050
Avatar

LOAD_PANEL is in sources/symbols.php.

Making them dynamic…

Create pages/minimodules_custom/panel_left.php
(that's if you're in the welcome zone)

Then it's PHP generated rather than Comcode generated, and you can put whatever code you wish in it.


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:
#104084
Avatar

Community saint

Not sure if something I did might help you achieve what you are looking for or at least a close comparison but I made a custom theme on the 1200px grid css in which I also added several custom panels but without having to modify the backend and only modified templates because the templates read pages with the words panel in anyway. As for different blaock displays per panel per zone can also be done with tempcode.

here are 2 links to the topics of discussion and I can give you the theme to look at if you like

View topic: Creating a 3 column theme with main content on the left - ocPortal.com

View topic: Understanding Panels in templates. - ocPortal.com

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: