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

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

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: