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.


Zones

Login / Search

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

Community saint

Title bar

Not sure if this is a theming issue or in the CMS somewhere.

How can I manipulate the title bar at the top to organize them or customize them the way I want. example: website l Forums l Personal Zone.

I want to change the order in which they appear.



Thanks

Back to the top
 
Posted
Rating:
#30635
Avatar

Hi,
If you replace the 'TOP' template with:

Code

<div class="global_top">
   <div class="global_zones">
      {$BLOCK,block=side_stored_menu,type=zone,param=zone_menu}
   </div>
   <div class="global_logo">
      {LOGOMAP}
      <img usemap="#logomap" src="{LOGOURL*}" title="{HEADER_TEXT*}" alt="{HEADER_TEXT*}" />
   </div>
   {$SET,BANNER,{$BANNER}} {$,This is to avoid evaluating the banner parameter twice}
   {+START,IF_NON_EMPTY,{$GET,BANNER}}
      <div class="global_banner" style="text-align: {!en_right}">{$GET,BANNER}</div>
   {+END}
</div>

The link area becomes a configurable menu :).


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

Community saint

Thank you
Back to the top
 
Posted
Rating:
#30638
Avatar

Community saint

Hi Chris,

My url's are misdirecting somehow. The front of the main site is fine, but after I enter the forum and which to click on something else it looks like this… forum/cms. Then it tells me page not found.

When I do this on the main page all the links are correct.
Back to the top
 
Posted
Rating:
#30639
Avatar

Did you enter the zone names as the page-links (e.g. cms)? I'd try cms:cms, site:start, etc (i.e. code the page names in as well as the zone names).
I can't remember for sure off hand, but I think the menu system only considers the 'URLs' to be page-links if they contain a colon, so it's probably using your "page-links" as relative URLs instead.


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

Community saint

I tried doing that.

The first page shows all links/zones and even points to them correctly. It is only when I am in that zone does it double the zone name.

http://mydomain.com/zone/zone



**Ok I went back in and actually added the url http://mydomain/zone

I had been clicking on the right where the zone was and letting it input the information. No all zones properly identified or listed when I did this.



Last edit: by xray
Back to the top
 
Posted
Rating:
#30651
Avatar

Hi,

You've found a bug: the menu editor's site-tree is giving you unsuitable page-links. This will be fixed in the next patch release.

For now, your URL solution should work fine, but our apologies for the confusion before you came to 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:
#30695
Avatar

Community saint

No worries, I also was able to do it by manually enter each of the information. Such as: Admin zone I used Admin:start

Some of the information if you were to enter forum:forum it will start or say the page is missing. I had to actually enter forum:forumview.

There was some other wierd things with some of the other pages too that I had to enter differently.

But they are all working now.
Back to the top
 
Posted
Rating:
#30701
Avatar

Community saint

OK, you guys have me 'frothing at the mouth' about this apparently simple fix.

Tried replacing the TOP.tpl with the code posted above. All it did was give me the ability to 'edit' the various zone links, but displayed it in 'side_box' format, which was not what I expected it to do. Arrggghhhhh!

It looks like xray was quicker on the uptake and was able to get the darn thing to display correctly (wish I had a link so I could 'go see').

All I want to achieve is to add a link to the Blog alongside the other links that appear in the top menu. I keep coming up against a brick wall because those links are all designated as 'zones' and the Blog is a 'page'.

I know Amy has managed this, but I also suspect that she re-wrote the whole darn script.

Any suggestions to help an old 'duffer' out?

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#30706
Avatar

Did you include type=zone? This bit sets the menu type to be the new 'zone' menu type we introduced in 3.1. It's not actually for zones specifically, but the name means that it works as a plugin substitute for the old hardcoded zone menu.


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

Community saint

I copied the code for the 'replacement' TOP.tpl and substituted the one in use. That gave me a message in the area that normally holds the menu saying something along the lines ". . . no menu available, would you like to create one now?" Clicking on the message brought me to a 'menu edit' page in which I could build the menu, trying to replicate the current menu, plus an additional menu-link to the Blog.

Apart from the fact that the Blog link wasn't being built, the display then showed the menu as a 'block', cascading down from the menu bar.

That's about when I gave up!

 O_o

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#30725
Avatar

Hi,

Are you trying this on your staging site?
Is it possible that this file is missing:
themes/default/templates/MENU_BRANCH_zone.tpl
?

In order to prevent errors, ocPortal will revert to the 'tree' menu type if it sees that the specified menu type is missing, and the MENU_BRANCH_<type> template is the template that gets checked to see if a menu type 'exists'.


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

Oh, and to clarify – yes, you would need to add the menu, so everything you've said is to be expected, apart from this incorrect menu type.


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

Community saint

I found a work around for the external zone linking.
after the zone is created edit the index page to a redirect page.

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

Community saint

Chris Graham said

Are you trying this on your staging site?
Is it possible that this file is missing:
themes/default/templates/MENU_BRANCH_zone.tpl

Yes, and yes.

However, putting the file up still hasn't 'resolved' my problem. Still getting various errors, especially the inability to create 'zone_menu' . . . and CHMOD to write . . . and . . . 'does not exist' errors . . . and . . . no edit menu appearing . . . and . . .

I'll get back to you on this one when I have the time to work my way through all the permutations.

Thanks for your patience.


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#30739
Avatar

There are various other templates with 'zone' in the name that would be needed.


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

Community saint

OK. Off to look at what is there - and what isn't.

I didn't think it was necessary to continue to 'upgrade' the sandbox as it was just a test site, but I now have to re-think that decision if I intend to use it as a testbed for rolling out 'new' stuff.

Will hurry this one along so that the momentum isn't lost.

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#30758
Avatar

Community saint

Problem solved.

The sandbox had a 3.0.x version, hence the 'two-fingered salute' when I tried to implement this 'fix'. Upped the version (incrementally - there was a big jump in one of the patch upgrades) to 3.1.5 and now things are displaying the same on the 'test' site as they do on the 'main' one.

I liked the fact that the hard-coded version of the menu automatically hid links to which the user did not have access, but I like the flexibility of being able to add a link (or two) to the menu without having to jump through coding hoops.

Thanks for the help.

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#30761
Avatar

Community saint

Fletch said


I liked the fact that the hard-coded version of the menu automatically hid links to which the user did not have access, but I like the flexibility of being able to add a link (or two) to the menu without having to jump through coding hoops.

Thanks for the help.

This is exactly why I keep asking for external linking zones.
what was added in 3.1 did not work and just did not help at all and I do not see any one using it.
do you think it could be possible to add another field to the zone creation page to allow for external links?
A feature like this would help simplify ocPortal and make it better for all who use it.

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

I liked the fact that the hard-coded version of the menu automatically hid links to which the user did not have access, but I like the flexibility of being able to add a link (or two) to the menu without having to jump through coding hoops.

Hi,

There should be a similar thing on the menu system, if you tick the 'Only display link if there is permission' option for the menu items you add.


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   Expand