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.


How to remove the dividing lines between the zone menu items

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#61096 (In Topic #13281)

Non-joined user

I am having a problem removing the dividing lines in the zone_menu ( I am using it as my main navigation for the site) They are not listed in any of the templates, but I can see them in the source code.

Thanks
Back to the top
 
Posted
Rating:
#61099
Avatar

It's in MENU_BRANCH_zone.tpl. It's a little confusing as there's some logic in there to make them not show on the left of the first link (by setting a variable that contains the pipe only after the first link is displayed).


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

Community saint

I seem to be having a bit of difficulty understanding the behavior of this statement: For whatever I change the pipeline sign to-let's say "?" or even a "space", it is showing well in the preview; exactly as I would like it to be. But, once saved (cache cleaned and all), it has not changed from the original pipe sign.

Code

{$SET,menu_divider, ?}
Maybe, indeed, I have not identified the correct variable, or something else overrides this top menu in the forum zone?

Please enlighten me when you have a chance.;)
Thanks
Jean
Back to the top
 
Posted
Rating:
#61445
Avatar

Hi,

I'm not sure what's going on there. It should change very simply, and I just tested and it's working on this end. All I can think is if the change was saved into a non-active theme.

Anyway, I can at least explain how it works.

This is a fairly common problem, the need to put a divider between things, so there will be one less divider than there are entries being divided.

We solve it by putting the divider into a variable. We show the variable before all menu items, but we only set it after the first. That means the first time it is shown it is blank so it's effectively not there, which is what we want.


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

Community saint

Chris Graham said

Hi,

I'm not sure what's going on there. It should change very simply, and I just tested and it's working on this end.
Indeed it is working fine on my test site, and I apologize for the confusion.
Your detailed explanation made me realized that I was not talking about the same menu, as I have discarded the "global_zones" menu block in my site theme. I think that I was actually referring to the comcode template "panel_top" on my forum page. Here's a picture of it with the pipe dividers.


PS: By the way, I've noticed that attachments to my posts are being shown twice and I must edit the post to remove the extra copy. I'm I using it wrong?O_o
Back to the top
 
Posted
Rating:
#61453
Avatar

Hi,

Those are probably borders.

PS: By the way, I've noticed that attachments to my posts are being shown twice and I must edit the post to remove the extra copy. I'm I using it wrong?

I'll look into 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:
#61456
Avatar

Community saint

Thanks for the pointer Chris!:)

I found the border in question and changed it to none:

Code

.menu_type__top li, .menu_type__dropdown li.toplevel { border-{!en_left}: none;
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: