Navigation &amp; Tagging/Taxonomy - MODX Community Forums <![CDATA[Support/Comments for Breadcrumb]]>
As the original jaredc/splittingred's BreadCrumbs, this snippet will create a breadcrumb navigation (no kidding laugh). That's not all ! I also added several new feature that I really needed like template properties or specific resource ID property.

Documentation :
Package :
Github :

// Show the breadcrumb of the current resource

// Show the breadcrumb of the resource whose ID is 72
[[BreadCrumb? &to=`72`]]

// Show the breadcrumb of the resource whose ID is 72 from it's level 2 parent
[[BreadCrumb? &from=`[[UltimateParent? &topLevel=`2`]]` &to=`72`]]

// Change the direction of the breadcrumb : rtl (Right To Left) or ltr (Left To Right)
[[BreadCrumb? &direction=`rtl`]]

// Use custom templates
[[BreadCrumb? &linkCrumbTpl=`myLinkCrumbTpl`]]

This snippet support most of jaredc/splittingred's BreadCrumbs features :

- maxCrumbs
- pathThruUnPub (now as showUnPub)
- respectHidden (now as showHidden)
- showCrumbsAtHome
- showCurrentCrumb
- showHomeCrumb

And add new features that I really needed :

- chunk as templates (properties &containerTpl, ¤tCrumbTpl, &linkCrumbTpl, &maxCrumbTpl)
- breadcrumb for and from specific resource (property &from and &to)
- direction (property &direction)
- showContainer property

Some properties of jaredc/splittingred's BreadCrumbs have been removed but can easily be replaced by chunk / CSS customization, as :

- crumbSeparator
- currentAsLink
- descField
- homeCrumbDescription
- homeCrumbTitle
- maxDelimiter
- titleField
]]> Mon, 25 Feb 2019 09:35:57 +0000
<![CDATA[ultimateParent with wayfinder]]> Now I've the problem that the parent of the submenu-items is no marked as active. For example the document "awards" has three child documents, like "1" to "3". If "1" is selected, the active mark for "awards" vanishes. The parent of the splitted submenu is not marked active, when a submenu item is visited.]]> Sun, 26 Aug 2018 06:01:04 +0000 <![CDATA[Trouble with multi-level menu with Bootstrap]]>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			<a class="navbar-brand" href="/">[[++site_name]]</a>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
					<li class="[[+classnames]] dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" [[+attributes]]>[[+menutitle]]<b class="caret"></b></a>
						<ul class="dropdown-menu">[[+wrapper]]</ul>
					&tplOuter=`@INLINE [[+wrapper]]`
		</div><!--/.nav-collapse -->

Any help or suggestions to get this to work would be appreciated.

Thanks]]> Tue, 10 Jul 2018 04:22:53 +0000
<![CDATA[Tagger URI - Multiple tags possible?]]>
So i made a news page for a friend and used the 'Tagger' add-on to insert certain tags for specific news items.

I found out that it is possible to filter tags with a URI like so:

And this works like a charm, but i was wondering (can't find anything on this in the documentation) if it's possible to filter on multiple tags aswell?

Does anyone know if this is possible somehow?

Thanks in advance!]]> Tue, 15 May 2018 04:46:28 +0000
<![CDATA[Tagger conundrum]]>

Is it possible at all to eliminate the tagger-groupname from the URL? I am only using one group - which I called 'categories'.

Thanks!]]> Tue, 12 Sep 2017 07:24:06 +0000
<![CDATA[Nav Menu CSS Centering]]>
I am pretty new to the whole MODX scene and just took over my companies website that was origianlly built on MODX platform.

I've changed the menu to something that I like better but for some reason it keeps staying to the left of the page under the banner no matter what I do to it.

Any ideas? All help is very much appreciated since I am trying to learn all this stuff.

Here is the CSS:
font: bold 12px Verdana;
background: #414141;
width: 100%;

.jqueryslidemenu ul{
margin: 0;
padding: 0;
list-style-type: none;

/*Top level list items*/
.jqueryslidemenu ul li{
position: relative;
display: inline;
float: left;

/*Top level menu link items style*/
.jqueryslidemenu ul li a{
display: block;
background: #414141; /*background of tabs (default state)*/
color: white;
padding: 8px 10px;
border-right: 1px solid #778;
color: #2d2b2b;
text-decoration: none;

* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;

.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
color: white;

.jqueryslidemenu ul li a:hover{
background: black; /*tab link background during hover state*/
color: white;
/*1st sub level menu*/
.jqueryslidemenu ul li ul{
position: absolute;
left: 0;
display: block;
visibility: hidden;

/*Sub level menu list items (undo style from Top level List Items)*/
.jqueryslidemenu ul li ul li{
display: list-item;
float: none;

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.jqueryslidemenu ul li ul li ul{
top: 0;

/* Sub level menu links style */
.jqueryslidemenu ul li ul li a{
font: normal 13px Verdana;
width: 160px; /*width of sub menus*/
padding: 5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid gray;

.jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
background: #eff9ff;
color: black;

/* ######### CSS classes applied to down and right arrow images  ######### */

position: absolute;
top: 12px;
right: 7px;

position: absolute;
top: 6px;
right: 5px;
]]> Wed, 16 Aug 2017 04:49:52 +0000
<![CDATA[FURLs - is it possible to hide a Container (parent) resource name from the URL?]]>
It's like this:
[Utility / 

I have FURLs on, and I'm using Wayfinder to render my menus. This naturally leads to urls like this example:

What I would ideally like is to not have the word 'utility' appearing in the url, for example:

I've tried it with the 'Utility' Resource set to 'Hide from menus' but that just does the obvious and hides the entire full menu, and subsequently the Blog, Contact, T&C pages etc.

I've looked at FURL Settings - 'Use Frozen Parent URIs' but no joy there. Also tried adding 'utility' to 'FURL Alias Trim Characters' but no joy there either.

Is there a way I can achieve this with Wayfinder? To hide just the one parent Container resource from the FURL but still render the sub-Containers in the menu???

Thanks in advance.]]> Mon, 10 Jul 2017 10:52:23 +0000
<![CDATA[Make UltimateParent title a link]]> Hi all,

I've been trying to make the UltimateParent in a clients sidebar nav link to the parent as a resource instead of just being a sidebar title.
Unfortuantely I did not set this up and find this rather confusing.

Here is the code the sidenav is using:

<p class="sidebar-active">[[!getResourceField? &id=`[[!ultimateparent]]` &field=`pagetitle`]]</p>

[[!Wayfinder? &startId=`[[!ultimateparent?&level=`1`]]` &rowTpl=`leftMenuRow` &hideSubMenus=`1`]]

It is the opening <p> in the <li> that needs to be a link to that parent resource.

Any help would be appreciated.

Mike]]> Tue, 13 Jun 2017 01:47:48 +0000
<![CDATA[Tagger - How to auto-generated pages]]>
I've been trying to solve this question on and off for a few months. Is there a way top auto-generated the pages for Tagger to display related tags on?

On each photo page there is a series of tags for 'country' 'state' and 'region' - which are set up as three separate Tagger groups. The chunk used is:
<div id="tags">
[[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-placeTags` &groups=`1` &target=`0`]]  >  [[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-placeTags` &groups=`2`]]  >  [[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-placeTags` &groups=`3`]]

That works well.

I then created a resource for a country "Australia" - published but not showing on menus. When I create it inside a container, to keep the Resource Tree tidy, I also need to freeze the URI to remove the container from the url. On that page I use the following code, which also works:
[[!getResources? &tpl=`tplIntros` &parents=`2` &includeTVs=`1` &processTVs=`1` &hideContainers=`1` &includeContent=`1` &showHidden=`1` &where=`[[!TaggerGetResourcesWhere? &tags=`[[*pagetitle]]`]]`]]

The Tagger documentation assumes a lot of knowledge - ie. you also need to populate the rest of the getResources call.

I'm guessing that there's a way to auto-generate the pages to display tags on. Otherwise it means creating a new resource for every tag that gets added.

Can anyone give me any clues on auto-generating pages, or is that not possible?

Thanks in advance

Rob]]> Mon, 15 May 2017 03:37:57 +0000
<![CDATA[How to speed up multiple Tagger calls]]>
My setup for Tagger has it displaying as a pseudo hierarchy, which was really easy to set up. I'm wondering if it would be possible to combine the following calls into a snippet, or series of snippets to speed things up?

[[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-placeTags` &groups=`1`]]  »  
[[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-placeTags` &groups=`2`]]  »  
[[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-placeTags` &separator=`  `&groups=`3`]]<br /><br />
[[TaggerGetTags? &resources=`[[*id]]` &rowTpl=`tpl-subjectTags` &separator=`   `&groups=`4`]]

Any help would be greatly appreciated as my php skills are negligible.

Thanks]]> Tue, 09 May 2017 04:01:40 +0000
<![CDATA[Wayfinder Sort Options]]>
I was wondering if I can sort my mnenu items in wayfinder in a custom way. This is the problem. I have a homepage menu that requires a set of menu items then in the interior pages I need a different set of menu items.

For example:

Home Page:

home | about | contact us

Interior Page:

contact us | about | where to buy | teachings

Any help would do. I’m thinking if i’m able to just give the menu certain id’s of the resources then that would make building my menu’s easier.


Matt]]> Fri, 31 Mar 2017 01:31:44 +0000
<![CDATA[Help with dropdown menu in wayfinder]]>
I am trying to figure out how to configure the menu. How to configure the parent not to be a link but a title? I hope the question is understandable.
I am using Revolution 2.2.0 and wayfinder. I have not set up and tpl chunks, I am using the default.

Thank you]]> Tue, 14 Mar 2017 01:05:24 +0000
<![CDATA[Taxonomies extra not working]]>
Could someone please help me, the taxonomies extra is not working at all. Running on Modx 2.5.0-pl taxonomies-1.3.2-pl PHP Version 5.6.29 and I also have Tagger extra installed. I have looked around, applied different solutions but still nothing.

Here is the snippet i am using
[[getPageTerms? &outerTpl=`` &innerTpl=othertpl &limit=`0` ]]

othertpl chunk has
<a class="b-tag"> href="[[~[[+id]]]]">[[+pagetitle]]</a>

Also just tried this snippet [[getPageTerms]] and this [[!getPageTerms]]

the error I get

[2017-02-23 18:49:53] (ERROR @ /***/****/core/components/taxonomies/model/Base.php : 301) PHP warning: in_array() expects at least 2 parameters, 1 given

The template I have put the the above snippets in, results to a blank page.

Also the another error I am getting is:

[2017-02-23 18:50:04] (ERROR @ /****/****/core/xpdo/om/xpdoobject.class.php : 543) Error 42000 executing query: SELECTPageTerm.idASPageTerm_id,PageTerm.page_idASPageTerm_page_id,PageTerm.term_idASPageTerm_term_id,PageTerm.seqASPageTerm_seq,Page.idASPage_id,Page.typeASPage_type,Page.contentTypeASPage_contentType,Page.pagetitleASPage_pagetitle,Page.longtitleASPage_longtitle,Page.descriptionASPage_description,Page.aliasASPage_alias,Page.link_attributesASPage_link_attributes,Page.publishedASPage_published,Page.pub_dateASPage_pub_date,Page.unpub_dateASPage_unpub_date,Page.parentASPage_parent,Page.isfolderASPage_isfolder,Page.introtextASPage_introtext,Page.contentASPage_content,Page.richtextASPage_richtext,Page.templateASPage_template,Page.menuindexASPage_menuindex,Page.searchableASPage_searchable,Page.cacheableASPage_cacheable,Page.createdbyASPage_createdby,Page.createdonASPage_createdon,Page.editedbyASPage_editedby,Page.editedonASPage_editedon,Page.deletedASPage_deleted,Page.deletedonASPage_deletedon,Page.deletedbyASPage_deletedby,Page.publishedonASPage_publishedon,Page.publishedbyASPage_publishedby,Page.menutitleASPage_menutitle,Page.donthitASPage_donthit,Page.privatewebASPage_privateweb,Page.privatemgrASPage_privatemgr,Page.content_dispoASPage_content_dispo,Page.hidemenuASPage_hidemenu,Page.class_keyASPage_class_key,Page.context_keyASPage_context_key,Page.content_typeASPage_content_type,Page.uriASPage_uri,Page.uri_overrideASPage_uri_override,Page.hide_children_in_treeASPage_hide_children_in_tree,Page.show_in_treeASPage_show_in_tree,Page.propertiesASPage_propertiesFROMtax_page_termsASPageTermLEFT JOINmodx_site_contentPageONPageTerm.page_id=Page.idWHEREPageTerm.term_id= ? GROUP BY page_id ORDER BY ASC,PageTerm.idASC - Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC,PageTerm.idASC' at line 1 )
]]> Sat, 25 Feb 2017 06:31:25 +0000
<![CDATA[Taxonomies: getPagesbyTerm]]> However i run into some problems.

The backend stuff seems to work ok. So i am able to create some taxonomies and some terms.
However if i try to load [[!getPagesByTerm]] nothing "happens" and the following (several duplicate) lines appear in the log:

[2015-06-26 00:28:17] (ERROR @ /index.php) No class specified for loadClass

Who has encountered this and solved it? Or does anyone have a clue where to look?

PS: None of the scripts seem to work.]]> Fri, 24 Feb 2017 08:25:32 +0000
<![CDATA[Sorting Tagger tags in Manager]]> Fri, 30 Dec 2016 02:55:11 +0000 <![CDATA[Tagger - upgrade bug? 1.5.0 to 1.7.0]]>
However when I try to update Tagger in the package manager from v1.5.0 to 1.7.0 it erased the tag groups. Then won't let me add any new groups at all.

I have restored the site and upgraded twice, just to be sure. Same problem both times.

Any ideas what might be happening or how I can fix it?]]> Tue, 15 Nov 2016 04:09:10 +0000
<![CDATA[Add aria-labels to Wayfinder Nav]]>
A banking client needs ADA compliance updates and one area is aria labeling of links for better descriptive information. I tried to add aria-label="" into the link attributes of their MODX resources but they don't seem to get picked up.

Is there a proven method to do this in MODX? Does Wayfinder have a way to insert aria labeling into the nav it generates?

Their issue is primarily short link titles for different sections of the site that are either redundant or not fully descriptive, ie. the landing page for each section is "Overview" which causes erros in reporting.

I appreciate an feedback from the group.

Thank you,

Mike]]> Fri, 28 Oct 2016 01:09:03 +0000
<![CDATA[Attach Template Variable to a Specified Resource]]> Can we add a template variable(TV) to a specified resources. No other resource should get, view or add content to that tv.
Pls anyone help.... Thanks in advance...]]> Sat, 08 Oct 2016 07:14:16 +0000
<![CDATA[Custom template for nav pages in getPage]]>
On pages like http://localhost/modx/index.php?id=5&page=3

I want to use:
<link rel="prev" href="http://localhost/modx/index.php?id=5&page=2">
<link rel="next" href="http://localhost/modx/index.php?id=5&page=4">
<meta name="robots" content="noindex, follow" />

On last nav page I want to use
<link rel="prev" href="http://localhost/modx/index.php?id=5&page=PREV_NUMBER">

Please, help!]]> Wed, 28 Sep 2016 08:15:02 +0000
<![CDATA[Tagger and Sub-categories]]> I've developed a pretty simple product catalog using Collections and Tagger for categories. Now the client wants to add sub-categories to the categories. It looks like each category has unique sub-categories, so a list would look something like this:

- Widgets
-- Funky Widgets
-- Normal Widgets

- Gadgets
-- Weird Gadgets
-- Simple Gadgets

My question is, does anyone have any experience creating a nested category system using Tagger, and if so, do you have examples or details of how you did it?

Thanks!]]> Tue, 05 Apr 2016 02:16:15 +0000