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.


The type of menu. What is this?

Login / Search

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

Community saint

When putting blocks in the side menu sometimes I have to choose the type of menu. By default it is "tree". What are other possibilities? I suppose you can make some roll-down menu as well. It would be nice to have a dropdown box here to have a choise.
Back to the top
 
Posted
Rating:
#28944
Avatar

The types are:
  • dropdown
  • embossed
  • popup
  • tree
  • zone

In the next patch release the block wizard will provide a drop-down list to choose which menu type to use.


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

Community saint

But how should I make a menu that looked like a Forum news menu on your start page?
Back to the top
 
Posted
Rating:
#29051
Avatar

This is a template modification. This is our BLOCK_SIDE_RSS.tpl (which is actually used for news):

Code

<div class="standardbox_wrap_panel" style="{$?,{$GET,interlock},border-top: 0px,margin-top: 5px}; {+START,IF,{$AND,{$NEQ,auto,100%},{$NOT,{$BROWSER_MATCHES,ie}}}}width: 13.3em{+END}">
        <div class="standardbox_classic standardbox_t_panel" style="height: auto; width: 13.3em">
         <h4 class="standardbox_title_panel"><a style="float: right; padding: 5px" class="hide_button" href="#" onclick="Javascript: hideTag(this.parentNode.parentNode); return false;"><img class="blend" alt="{!EXPAND}/{!CONTRACT}" src="{$IMG*,expand}" /></a> {+START,IF,{$EQ,{_GUID},174fa5ce0d35d9b49dca6347c66494a5}}Forum Topics{+END}{+START,IF,{$NEQ,{_GUID},174fa5ce0d35d9b49dca6347c66494a5}}{TITLE}{+END}</h4>
      <div class="standardbox_main_classic hide_tag" style="display: none">
   {+START,IF_EMPTY,{CONTENT}}
      <p class="block_no_entries">&raquo; {!NO_TOPICS}</p>
   {+END}
   {+START,IF_NON_EMPTY,{CONTENT}}
      {CONTENT}
   {+END}
      </div>
   </div>
</div>
{$SET,interlock,_true}

It's quite a complex modification but basically instead of using a 'BOX' Tempcode directive like the default template does, we've placed a modified version of that box HTML directly into the template.


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

Community saint

Hi Chris!

Sorry to bring up an old topic, but I was wondering, if you get a second, could you comment this code a litle more? I'm trying to get my head around using the collapsible menu scheme.

TIA!

"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:
#38631
Avatar

Community saint

I think it would be real cool to have the following options:

  • collapsible
  • dropdown
  • embossed
  • popup
  • tree
  • zone
Have the collapsible as a built in option like all of the others. I'm sure there are some technical reasons why this could not be done but if not then I can only say WOW it would be an awesome option, especially with the addition of the drop-down list that was mentioned.

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38632
Avatar

Community saint

Agreed!

Edit: Nevermind Chris; further digging shows you've already handled this in the code. For anyone else, all clues needed are here: ocPortal &ndash; View topic: Collapsible sidpanels?

Thanx!


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

Yes. This topic is a bit of a bag of confusion.

The premise of this topic is about different kinds of menus, then it goes off and talks about box types instead. I then went on to write a load of complex Javascript/Tempcode to hard-code a collapsible equivalent to our standard box into the a template so that the news box is collapsable.

However, it's a really old topic. We kind of did do what you suggested Rick. The panel box type has supported an optional collapsing feature for a while now. This means you can also make menus collapse if you like.


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: