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.


Tray boxes

Login / Search

 [ Join | More ]
 
Posted
Rating:
#33222 (In Topic #7496)
Avatar

A number of you have inquired about how we got the expandable/contractible boxes working on ocPortal.com, and we've always responded by pointing out that it was done by a template edit.

Well, whenever we read any kind of post from a user, we think 'is there a possible new feature here', and in this case we have been planning easy support for adding this into ocPortal since the first request :).

I was implementing this into version 4 today, but I made a bit of a blunder – I implemented it into 3 by mistake. So I thought about it, and I've come to the conclusion I might as well just release this into 3 because it's a fairly safe change, and people have been requesting it a fair bit anyway :).

So from the next patch release, a number of the side boxes will have support for expansion/contraction, if the following is typed into OcCLE:

Code

:set_value('tray_support','1');
Also the following needs to be in a theme's global.css:

Code

.standardbox_tray {
   float: right;
   padding: 5px
}
Also, the STANDARDBOX_panel template can't be overridden, because this is where the new functionality resides (unless of course it's re-overridden using our new version as a base).

I've gone through all the side blocks and programmed whether they should be contractible/expandable and when they are, whether they should be expanded by default or not. To customise the defaults, you need to edit it's template and change tray_open to tray_closed or vice-versa.

The tray support is better than on ocPortal.com as it uses cookies to remember a user's choice.


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

Community saint

Cool this sounds good. To be honest it almost sounds like a old feature is being brought back which is good.
I was just thinking about that one site that uses an old version of ocPortal and it has menus that collapsed and expand how ever the way above is far better and cleaner looked so good job.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33228
Avatar

ocPortal menus do still support the expand/collapse thing :). You just need to make a multi-level menu in the menu editor, and set one of the top level branches to be collapsed.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: