Closed (won't fix)
Project:
Panels
Version:
6.x-3.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2009 at 15:33 UTC
Updated:
12 Jul 2009 at 20:31 UTC
I created a panel called section.
My section panel has a path of section/%sectionname
I can go to my browser and access section/news
If I try to create a menu item to section/news, it does not give me an error message, the menu item does not show up under the menu it was created (nor any other menu for that matter)
However in the menu_links database, I have:
mysql> select * from menu_links where link_path = 'section/news';
+---------------+------+------+--------------+-------------+------------+---------------------------------------------------+--------+--------+----------+--------------+----------+--------+-------+------------+-----+----+----+----+----+----+----+----+----+---------+
| menu_name | mlid | plid | link_path | router_path | link_title | options | module | hidden | external | has_children | expanded | weight | depth | customized | p1 | p2 | p3 | p4 | p5 | p6 | p7 | p8 | p9 | updated |
+---------------+------+------+--------------+-------------+------------+---------------------------------------------------+--------+--------+----------+--------------+----------+--------+-------+------------+-----+----+----+----+----+----+----+----+----+---------+
| primary-links | 662 | 0 | section/news | section/% | news | a:1:{s:10:"attributes";a:1:{s:5:"title";s:0:"";}} | menu | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
+---------------+------+------+--------------+-------------+------------+---------------------------------------------------+--------+--------+----------+--------------+----------+--------+-------+------------+-----+----+----+----+----+----+----+----+----+---------+
Comments
Comment #1
merlinofchaos commentedYes, this is an issue with Drupal core at the moment. You can't make direct menu links to something with an an argument like that. Drupal core does have a mechanism to do it, so that right now user/% leads to user/UID_OF_LOGGED_IN_USER but it's not really powerful enough to do it so that you can easily just set up a default.
Comment #2
merlinofchaos commentedOh hm. Actually my explanation isn't entirely accurate. But still, it's an issue with the Drupal menu system at that point, not Panels.
Comment #3
drupalnuts commentedSince this will be critical for some people is there a workaround?
My page section/%section will only take %section as a valid vocab term.
Would I be able to create a module that in hook_menu calls delegator_page_execute for each
section/news
section/information
etc
If so, what do I need to pass to delegator_page_execute to get my panel to display?
Does this make sense?
Comment #4
drupalnuts commentedI could hardcode all my links in my theme, but that seems that it defeats the purpose of the GUI. Is there a bug in core registered? Do you know of the issue number?
Comment #5
cronix commentedSubscribing. For me this is a very big issue too.
Comment #6
merlinofchaos commentedThe more I think about this, the less sure I understand even what your'e talking about.
On the demo site I have several links like this that I put into the menu that are working. All of the primary links are links to a single taxonomy term.
Comment #7
cronix commentedI am trying to store a link like: mypage/235
I get a corresponding record in menu_links with mypage/% and a record in menu_router is made too.
After that I don't see the menu item in the administration page anymore; it's just gone. I also don't get the menu item in my secondary menu. I can only get the item back in the administration page when I first manually edit the record in menu_links. I modify the link to for example to see it back again.
Comment #8
drupalnuts commentedIf you create a panel with path of
pagename/%
then go to the menu system and try to create a menu item to
pagename/abc
It does not let you do it.
Comment #9
houen commentedSame problem here - view with node id and taxonomy term id as arguments - if menus direct to their page, they disappear
Comment #10
drupalnuts commentedHouen,
Thank you for confirming this, I felt like I was the only one.
Once you add the panel the menu items go away, if you delete the panel, do they come back?
Comment #11
kevancummins commentedI added an issue earlier about menu tabs for custom pages in panel3.beta2 doesn't work - but it did in Panel3.beta1 - not sure if it's panel or chaos tools as this was also upgraded and we think this may be related - it says in chaos tools that * Add a new method of adding dynamic tabs
http://drupal.org/node/488416
Comment #12
moonray commentedI just ran across the same problem. The curious thing is, when I make the argument optional (i.e '!playlist' instead of '%playlist') it all works fine. So perhaps it's an issue with the % qualifier, which the menu system uses to do special things?
Comment #13
miiimooosubscribe
Comment #14
merlinofchaos commentedI have no control over what menu.module will and won't let you create links to. If it won't let you create a link even though the item exists, then that is a bug in menu. In my own testing, this works, so I do not understand what is wrong.
My replication:
I have a panel named 'test/%node'
I went to administer >> site building >> menus
I added 'test/1' as a link with the title 'Test'. Menu system allowed it, and all is well.