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.


show top_panel on site pages

Login / Search

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

Fan in action

Hi,

I want to show top_panel on all pages in site zone. I have a side_menu block in there set to top to achieve a horizontal menu beneath my header.

I have read the 'adding a new top (horizontal) menu' section of the ocPortal Tutorial: Customising what's on the menu. I understand that the top_panel is invisible by default when viewing pages in the site zone. How do I make it visible? I'm not sure what the tutorial means by the following. Is just clearing out all the code on the page apart from the menu block that is already there by default? I tried that.

If you like you can rip out the Tempcode 'IF' directive that's there, leaving only the block code (


). That change will make the menu start showing everywhere where the panel shows (that's a lot of places, due to the transparent redirects).


I have edited the comcode page 'site:top_panel', I assume this is the correct page to edit and will be the panel displayed once I have made panel_top visible in site against it's default setting.

I found this tutorial by Steve Jarvis on the Arvixe Blog...
http://blog.arvixe.com/how-to-convert-your-primary-ocportal-menu-to-a-full-width-dropdown-menu/

...it's not exactly what i want but I may try it now although it didn't quite make sense (I'm not great at ocPortal...). I thought someone may be able to help me explain in even more simple and further terms what I didn't understand in that section of ocPortal Tutorial: Customising what's on the menu, that I pasted above.

Thanks
Back to the top
 
Posted
Rating:
#103079
Avatar

Community saint

Depending on how much of your site you've changed or customized, you will probably want to find and edit :panel_top in your Comcode Page editor. The tutorial might be just a bit outdated, as there are three Tempcode 'IF' directives there now. I think this will get you what you want :

Look for this chunk of code in :panel_top:

{+START,IF,{$GET,HAS_SOCIAL_MENU}} [block param="main_community" type="top"]side_stored_menu[/block] 


and change it to this:

[block param="main_community" type="top"]side_stored_menu[/block]{+START,IF,{$GET,HAS_SOCIAL_MENU}}  


This should display only the horizontal menu everywhere :panel_top is used while still also displaying the main_member_bar and main_pt_notifications blocks in only the places they usually display.
Back to the top
 
Posted
Rating:
#103085
Avatar

Fan in action

Hey Jason, thanks :-) replacing that chunk with the other works a treat
Back to the top
 
Posted
Rating:
#103098
Avatar

Honoured member

rutger1 said

Hi,

I want to show top_panel on all pages in site zone. I have a side_menu block in there set to top to achieve a horizontal menu beneath my header.

I have read the 'adding a new top (horizontal) menu' section of the ocPortal Tutorial: Customising what's on the menu. I understand that the top_panel is invisible by default when viewing pages in the site zone. How do I make it visible? I'm not sure what the tutorial means by the following. Is just clearing out all the code on the page apart from the menu block that is already there by default? I tried that. If you like you can rip out the Tempcode 'IF' directive that's there, leaving only the block code (

). That change will make the menu start showing everywhere where the panel shows (that's a lot of places, due to the transparent redirects).


I have edited the comcode page 'site:top_panel', I assume this is the correct page to edit and will be the panel displayed once I have made panel_top visible in site against it's default setting.

I found this tutorial by Steve Jarvis on the Arvixe Blog...
http://blog.arvixe.com/how-to-convert-your-primary-ocportal-menu-to-a-full-width-dropdown-menu/

...it's not exactly what i want but I may try it now although it didn't quite make sense (I'm not great at ocPortal...). I thought someone may be able to help me explain in even more simple and further terms what I didn't understand in that section of ocPortal Tutorial: Customising what's on the menu, that I pasted above.

Thanks

Hi was there anything specific on the tutorial which wan't clear. I'd like to make it better if you have feedback

Just Jarv
Back to the top
 
Posted
Rating:
#103118
Avatar

Fan in action

Hey Steve, it's great, your post came in useful for what I was doing! When I wasn't so sure of your tutorial at 1st... I've been learning so much about ocportal the last 24hrs... it's just that when I first read your tutorial I didn't have the knowledge to take action, a few hours later I did and it helped. Your other tutorials are good too imo. Can't have too many ocportal tutorials by a long shot. your tutorials add nicely to the collection Thanks
Back to the top
 
Posted
Rating:
#103120

Fan in training

I used }

Which works well!
Back to the top
 
Posted
Rating:
#103122
Avatar

Honoured member

rutger1 said

Hey Steve, it's great, your post came in useful for what I was doing! When I wasn't so sure of your tutorial at 1st... I've been learning so much about ocportal the last 24hrs... it's just that when I first read your tutorial I didn't have the knowledge to take action, a few hours later I did and it helped. Your other tutorials are good too imo. Can't have too many ocportal tutorials by a long shot. your tutorials add nicely to the collection Thanks

Thank you for the feedback.  As a relatively new user is there anything you'd like to see a tutorial on?

Just Jarv
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: