Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2009 at 15:21 UTC
Updated:
13 Feb 2010 at 00:00 UTC
If using a Node add form context in a panel, the default name for the keyword is "node_add" with an underscore. Keyword substitutions tell you to use "%node_add:type" to display the node type. The problem is that this displays as:
"{node title}_add:type"
where "{node title}" is the actual title of the node you're currently in, essentially replacing the "%node" in "%node_add" with the title and ignoring the underscore and all that comes after it.
Removing the underscore from the keyword in the context setup fixes this problem.
Comments
Comment #1
merlinofchaos commentedFixed _ and - both.
Comment #2
merlinofchaos commentedThis was actually a ctools bug.
Comment #4
locomo commentedi'm having trouble with underscores in my keyword substitutions - when i remove them they work fine but when included they print directly to screen without being re-coded
e.i. %content_profile:title shows up in my panel as "%content_profile:title"
i'm using ctools 6.x-1.0-beta4
Comment #5
merlinofchaos commentedLet's see:
Date on -beta4: ctools 6.x-1.0-beta4 -- July 12, 2009 - 10:37
Date on my commit above: August 3, 2009 - 13:43
Also, you are posting about bugs 2 versions out of date. Please don't. That wastes everybody's time, including yours.
Comment #6
Rosamunda commentedHi!
I´m using 6.x-1.2 and the error seems to be the same that it´s reported here:
I´m trying to use as the panel title "%content_profile:title" and it just won´t show up. I´m using it in APK (Advanced Profile Kit) and it seems that´s a CTools issue.
I think it´s better to reopen this than to open a new issue...
Thanks!
Rosamunda
Comment #7
merlinofchaos commentedI have double checked and _ is being properly used as of CTools 1.2 -- perhaps there is something else wrong, such as a typo or the context not actually being available.