-
☆ A M B ☆
- 1,231 Posts
Is there a way I can exclude the parent folders from my breadcrumbs list?
My setup shows like this for example
Main Menu >> HOME
Services >> TECH SUPPORT
There is no info in the main menu or services pages as I’m only using these as parent folders for wayfinder. IS there a way to stop breadcrumbs allowing parent folders to be clickable or even take them out of the crumbs list completely?
Thanks
not a direct answer, but why do you do that?
Have a look at [FirstChildRedirect]
http://modxcms.com/FirstChildRedirect-834.html
-
☆ A M B ☆
- 1,231 Posts
Because i’m using an accordion menu and the parent folder is there to open the accordion sections.
and the options
$showCurrentCrumb [ 1 | 0 ]
$respectHidemenu [ 1 | 0 ]
do not fit?
-
☆ A M B ☆
- 1,231 Posts
I don’t quite know what you mean to be honest. All I need is if Breadcumbs can exclude the parent folders from the trail as these are just folders for my documents. Hope you know what i mean
sry for my denglisch
hope I get it now - and not tested
set the folder to be excluded from the menue (do not show in menue)
include that id from ’Main’ into you wayfinder call ( &includeDocs=`1,12,18` )
and have a look at the source:
// $pathThruUnPub [ 1 | 0 ]
// When your path includes an unpublished folder, setting this to
// 1 will show all documents in path EXCEPT the unpublished.
// Example path (unpublished in caps)
// home > news > CURRENT > SPORTS > skiiing > article
// $pathThruUnPub = true would give you this:
// home > news > skiiing > article
// $pathThruUnPub = false would give you this:
// home > skiiing > article (assuming you have home crumb turned on)
(isset($pathThruUnPub)) ? $pathThruUnPub : $pathThruUnPub = 1;
does that fit?