Closed (fixed)
Project:
Custom Breadcrumbs
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2009 at 12:48 UTC
Updated:
28 Jan 2010 at 05:50 UTC
I have a view with 2 arguments. The second argument is optionnal.
So it means than I need 2 different breadcrumbs for this view. Is there a way to accomplish this ?
Look at this example, breadcrumbs are the same.
Home » Painting » Dan Groover » Pop-art
http://imart.hsh.co.il/style/2
http://imart.hsh.co.il/style/2/4
on style/2:
It should be Home » Painting » Pop-art
Comments
Comment #1
MGN commentedyou can make a second breadcrumb for the same view for the case when the second argument is present. Include a php snippet in the Breadcrumb visibility form field (for each breadcrumb) to determine which one should be shown. For example, for the breadcrumb with two arguments:
This will return TRUE if the second argument is present and a number (or numeric string), allowing the breadcrumb to be displayed. For the breadcrumb with only one argument, use
So it will not be displayed if there is a second argument.
Comment #2
MGN commentedMarking as fixed since the question has been answered.