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.


Constant Side Panel

Login / Search

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

Community saint

I was wondering, if you make a menu item lets call it

Code

[block="main_menu" type="tree" caption="Main Menu"]side_stored_menu[/block]
then use that same menu code on multiple zones that menu block will be the same in all zones. If I edit that menu those changes will be reflected for that menu on all the zones.

My question is, is there anything like that for an entire panel? The reason I ask is that I have a site with about 20 zones and I want the same content on the right panel of all the zones. This in it self is not a major problem, the problem comes in when I want to make a change to the right panel. To reflect this change in the rest of the zones I have to edit each panel for all 20 zones. It would be really cool of there was panel code much like the menu code above. Then you could just place that code in each zone and when a change is made it is reflected on all zones at once.

I am sure this would not be easy but it might be something to think about for a future update. Of course if the majority of the users are not using a lot of zones then this would not be helpful.

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

Community saint

Heyya Rick! Have you tried using the include comcode tag? This is the approach I take when trying to accomplish what you are trying to do. Basically, all your panel_rights will have something like:

Code

[include]common_panel_right[/include]
where common_panel_right is an arbitrary name for the comcode page that contains the constant data like:

Code

[block="main_menu" type="tree" caption="Main Menu"]side_stored_menu[/block]
One change to common_panel_right and all 20 zones are updated.

Hope this helps!

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

Community saint

Hey SoccerDad,

Great info, thanks for the reply. The only problem I had was that if I wanted to edit the side panel I would have to go to Admin > Content Management > Choose > Edit Comcode page > common_panel_right.

So instead I just used

Code

[include]panel_right[/include]
on all of my other zones which is the panel for the Site Zone which is also what I wanted on the other 20 zones. By doing it this way I can just go to the Site Zone and click on the Edit in Zone editor like normal and all the others change as well. It just makes it a little easier to edit.

Again thanks for the heads up on the include comecode tag. I am guessing this can be used just about anywhere? I think I will have to go read up on that.

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

Community saint

No probleemo dude and even better call on including panel_right. The only downside would be if you wanted to have a zone or more that has it's own, however, you've indicated that static across zones is the name of the game, so you should be AOK me thinks.

Yes! One of the most used tags on any of my sites. I also use it to clean up complex pages. Some of the most complex pages on my sites are actually only rows of include tags. This makes editing a snap and reduces the potential of operator error…and I need all the help I can get! ;)

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

Community saint

So can I ask? Do you create "Hidden" pages with different content that you then "include" on the pages for the members? I am just trying to get my head wrapped around the best use for this command. It sounds extremely useful, I just want to make the best use of it... Thanks again for all your input/help.

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

Community saint

SoccerDad said

No probleemo dude and even better call on including panel_right. The only downside would be if you wanted to have a zone or more that has it's own, however, you've indicated that static across zones is the name of the game, so you should be AOK me thinks.
[ From “Constant Side Panel” ]
Actually you can still have a different side panel for other zones. Remember

Code

[include]panel_right[/include]
only applies to the site:zone any other zone would be zone:panel_right

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

Community saint

Good point Rick.

Sure, any help I can provide, happy to do so. Here is my start page for my company's support site:

Code

[if_in_group=1][include]start_header_guest[/include][/if_in_group]
[if_in_group=2+][include]start_header[/include]
[include]start_middle[/include][/if_in_group]
In this case, it's a combination of includes and the if_in_group to control who sees what. Group 1 is guest and group 2+ is administrators onwards…

Here is a snippet of start_middle:

Code

[if_in_group=2-18,20+]
[semihtml]<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="33%">[box="Client Filter" type="curved_fp"][include]fp_client_filter_block_content[/include][/box]</td>
    <td width="10px">&nbsp;</td>
    <td width="33%">[box="Policy Server" type="curved_fp"][include]fp_policy_server_block_content[/include][/box]</td>
    <td width="10px">&nbsp;</td>
    <td width="33%">[box="nsConnect" type="curved_fp"][include]fp_nsconnect_block_content[/include][/box]</td>
  </tr>
</table>[/semihtml]
using even more includes. The site can be seen here: Netsweeper Support

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

Community saint

Wow,

Is your whole site ocPortal? I don't think I have ever seen such a dramatic departure from the default look and feel. It looks awesome, great job, wish I knew half as much as you brainiacks (SP).

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

Community saint

Hey SoccerDad,

Just wondering, on your main site at www.netsweeper.com is that all ocPortal? The reason I ask is there is some very nice modifications. The one I am most interested in is the drop down menus. I have been playing with the ones that are built in and they are not nearly as nice as yours. If it is a major modification then it is probably above my skill level but if is fairly basic and you are willing to point me in the right direction that would be great. Again love the site…

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

Community saint

I'm not Soccer Dad, but I did look at his source code… :lol:

Looks like he uses this:

http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm


Last edit: by Eric

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#60141
Avatar

Community saint

Thanks Eric, I looked at the site and found the menu system, just looks like greek to me as to how to install it on to ocPortal. I will play with it on a test site so that I don't trash my production site. Thanks for the info…

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

Community saint

Hey Rick and Eric!

Rick, the menu on the main site is a total hack in for sure and I wouldn't recommend it as it does not use the internal menu structure of OCP and therefore, any changes are manual and a pain. I only used it 'cause I was under a time gun when doing the site and our main site does not change linkage very often. The support site uses the OCP dropdown menu but with some stylesheet modifications that I've made.

If I get a chance this week or upcoming weekend, I'll try provide CSS and imagery that will make the OCP menu look like the main site one and release it back here.

Glad you like it!

Be well, SD

P.S. Eric hit the nail on the head for the source of the main site menu ;)

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

Community saint

Thanks SD, I know your busy so don't go out of your way but I find having live examples and solutions are the best.

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

Quick reply   Contract

Your name:
Your message: