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.


Collapsible sidpanels?

Login / Search

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

Fan in action

How can I make collapsible side panel menus similar to the home page for ocportal?   I tried :

Code

[hide="name"]content[/hide]
but that didn't seem to work the way I wanted it to.
Back to the top
 
Posted
Rating:
#36321
Avatar

Community saint

This was a 'feature' released in 3.2.4 or 3.2.5. You indicate whether you want the tray 'open' or 'closed' in the template for the particular box you wish to adjust.

It is probably easier to show it in code form. The following is the latest (3.2.5) template code for BLOCK_SIDE_NETWORK.tpl, one I picked because it doesn't have much else in it, but you can see how the first line configures the display:

Code

{+START,BOX,{!NETWORK},13.3em,panel,tray_open}
   {CONTENT}
{+END}


Hope that has been of help.

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#36322
Avatar

Community saint

Forgot to mention, you should also 'activate' the tray support feature in OcCLE by typing in:

:set_value('tray_support','1');

Good luck.

:thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#36331
Avatar

Fan in action

Is there something else that overrides this feature?  I am able to get some of the panels to close but others stay open reguardless of what I change the template file to.  For example BLOCK_SIDE_STORED_MENU.tpl is set as :

Code

{+START,BOX,{CAPTION*},13.3em,panel,tray_closed}
   {CONTENT}
{+END}
but it remains open.

Thanks for the help ;)

Fletch said

Forgot to mention, you should also 'activate' the tray support feature in OcCLE by typing in:

:set_value('tray_support','1');

Good luck.

:thumbs:
 
Back to the top
 
Posted
Rating:
#36333
Avatar

Community saint

Hi,

Not sure whether you've managed to get it to work or not - whether the OcCLE cmd set the parameters and it all works fine now. Or not?

One other thing with ocPortal that has to be remembered is that the caches need to be cleared before some of the changes become apparent - that's the good old "CTRL+ALT+SHFT+refresh" trick!

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#36338
Avatar

dspearing said

Is there something else that overrides this feature?  I am able to get some of the panels to close but others stay open reguardless of what I change the template file to.  For example BLOCK_SIDE_STORED_MENU.tpl is set as :

Code

{+START,BOX,{CAPTION*},13.3em,panel,tray_closed}
   {CONTENT}
{+END}
but it remains open.

Thanks for the help ;)

Fletch said

Forgot to mention, you should also 'activate' the tray support feature in OcCLE by typing in:

:set_value('tray_support','1');

Good luck.

:thumbs:
 

The open state is remembered in a cookie - the Tempcode bit here defines the default.


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: