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.


Contracted Branch Menu not linking to associated page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#76811 (In Topic #15820)

Community saint

Clicking on the branch menu only expands or contracts the menu.

I have a contracted branch menu called "products" with 5 sub-menus.

The Link associated with "products" is a valid entry point ":products".

The sub-menus all have valid entry points as well.

However when I click on the "products" menu, the menu expands and contracts, but the entry point page is not loaded.

When I click on a sub-menu, the appropriate entry point page is loaded.

When I click on the "products" menu, the URL I get is:

  http://server/home/index.php?keep_mobile=0

When I click on a sub-menu, the URL I get is:

   http://server/home/index.php?page=products_kmx&keep_mobile=0

This happens consistently on any contracted branch menu. It is as if that menu type ignores the defined Link.

Suggestions?
Back to the top
 
Posted
Rating:
#76832
Avatar

use 'popup' menu instead of 'tree' menu. 'tree' by its very design cannot encode links on the expanders/contractors.


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:
#76834

Community saint

Too bad about the tree menu. I much prefer the look and feel to the popups which I find …and I think most customers find annoying … but that is another discussion.

Perhaps the menu editor should disable the Link field when the menu is configured as a tree?

Nevertheless, I appreciate the quick response.
Back to the top
 
Posted
Rating:
#76835

Community saint

I apologize for the rambling … but even the menu editor is more concise and easier to read using tree menus rather than popups.

Quite simply I prefer this:



to this:

Back to the top
 
Posted
Rating:
#76836
Avatar

If you want to modify the tree menu to somehow introduce a different link for expanding than for opening an item, you can do – everything is passed into the templates. Or possibly it can be templated so that is auto-expands a node if you're currently on a child page of that node or the node itself.


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

Hi again,

So this one made me think. A few people have asked for this and I always thought it a bit odd, as the expand action clearly is taking up the click action so how it could it go to the URL link too? But actually, of course it can – all we need to do is to make the URL link always work and sure if it is clicked, when it gets to the next screen, it is auto-expanded. Just now in this case the expand is happening when ocPortal renders the new page, rather than using Javascript.

It was a little harder to make intuitive than just editing one template, but I have made it work. Attached are my changes. I can't guarantee compatibility with v7.1, but I think they are. Keep backups in case.

Attachment
sources/menus.php
» Download: menus.php (30 Kb, 89 downloads so far)
Attachment
Put in themes/default/templates (overwrite original)
» Download: MENU_EDITOR_BRANCH_WRAP.tpl (3 Kb, 92 downloads so far)
Attachment
Put in themes/default/templates (overwrite original)
» Download: JAVASCRIPT_MENU_EDITOR.tpl (15 Kb, 102 downloads so far)
Attachment
Put in themes/default/templates (overwrite original)
» Download: MENU_EDITOR_BRANCH.tpl (345 Bytes, 99 downloads so far)
Attachment
Put in themes/default/templates (overwrite original)
» Download: MENU_BRANCH_tree.tpl (729 Bytes, 81 downloads so far)


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

Community saint

Chris Graham said

…. I can't guarantee compatibility with v7.1, but I think they are. Keep backups in case.

Does that mean that this will be available in 7.2?

Bob
Back to the top
 
Posted
Rating:
#76870
Avatar

Yes, except 7.2 is now going to be called 8.


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

Community saint

Chris Graham said

Yes, except 7.2 is now going to be called 8.
I had a hunch this was going to happen. It's obvious that there is too much new goodness for a point increment.

I'm anxious to see what all you have done in addition to the catalog stuff that I know about.

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

Quick reply   Contract

Your name:
Your message: