Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2009 at 07:05 UTC
Updated:
21 Oct 2009 at 22:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
ayalon commentedI have the same problem. Is there an easy solution for this?
If you have an optional parameter and if you are using substitution patterns, the pattern are not deleted if the argument is not present.
Example:
Panel Page URL:
infos/!tid
Title Pattern:
Infos %tid:name
If argument is present:
Infos MyCategoryname
If argument is missing:
Infos %tid:name
Better would be:
Infos or Infos All where "All" is the wildcardname of a view used on this panel page.
I tried with the wilcard "all" but this is not working too because "all" is not accepted as a valid context argument and therefore its not possible to pass the wildcard to a view.
Comment #2
ayalon commentedI wrote a small patch for ctools to remove all patterns, that are not replaced if an optional argument is missing.
Comment #3
merlinofchaos commentedSetting proper status for a patch.
Comment #4
merlinofchaos commentedAnd proper project since the patch is against ctools.
Comment #5
merlinofchaos commentedAnd committed!