Navigation &amp; Tagging/Taxonomy - MODX Community Forums https://forums.modx.com/board/?board=67 <![CDATA[ultimateParent with wayfinder]]> https://forums.modx.com/thread/103670/ultimateparent-with-wayfinder#dis-post-561116 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.]]> https://forums.modx.com/thread/103670/ultimateparent-with-wayfinder#dis-post-561116 Sun, 26 Aug 2018 06:01:04 +0000 https://forums.modx.com/thread/103670/ultimateparent-with-wayfinder#dis-post-561116 <![CDATA[Trouble with multi-level menu with Bootstrap]]> https://forums.modx.com/thread/101651/trouble-with-multi-level-menu-with-bootstrap#dis-post-559478
<!-- 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>
			</button>
			<a class="navbar-brand" href="/">[[++site_name]]</a>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				[[pdoMenu?
					&startId=`0`
					&level=`4`
					&tplParentRow=`@INLINE
					<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>
					</li>`
					&tplOuter=`@INLINE [[+wrapper]]`
				]]
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</div>


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

Thanks]]>
https://forums.modx.com/thread/101651/trouble-with-multi-level-menu-with-bootstrap#dis-post-559478 Tue, 10 Jul 2018 04:22:53 +0000 https://forums.modx.com/thread/101651/trouble-with-multi-level-menu-with-bootstrap#dis-post-559478
<![CDATA[Tagger URI - Multiple tags possible?]]> https://forums.modx.com/thread/103832/tagger-uri---multiple-tags-possible#dis-post-558573
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:
http://example.com/?tag=tagname


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?

http://example.com/?tag=tagname&tag2=tagname2


Does anyone know if this is possible somehow?

Thanks in advance!]]>
https://forums.modx.com/thread/103832/tagger-uri---multiple-tags-possible#dis-post-558573 Tue, 15 May 2018 04:46:28 +0000 https://forums.modx.com/thread/103832/tagger-uri---multiple-tags-possible#dis-post-558573
<![CDATA[Tagger conundrum]]> https://forums.modx.com/thread/102820/tagger-conundrum#dis-post-553847
http://domain.com/resource/tagger-groupnamey/tagname

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

Thanks!]]>
https://forums.modx.com/thread/102820/tagger-conundrum#dis-post-553847 Tue, 12 Sep 2017 07:24:06 +0000 https://forums.modx.com/thread/102820/tagger-conundrum#dis-post-553847
<![CDATA[Nav Menu CSS Centering]]> https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553209
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:
.jqueryslidemenu{
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  ######### */

.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}

.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}
]]>
https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553209 Wed, 16 Aug 2017 04:49:52 +0000 https://forums.modx.com/thread/89450/nav-menu-css-centering#dis-post-553209
<![CDATA[FURLs - is it possible to hide a Container (parent) resource name from the URL?]]> https://forums.modx.com/thread/102524/furls---is-it-possible-to-hide-a-container-parent-resource-name-from-the-url#dis-post-552381
It's like this:
[Utility / 
    [Blog/index.html]
    [Contact/index.html]
    [T&C/index.html]
]

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

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

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.]]>
https://forums.modx.com/thread/102524/furls---is-it-possible-to-hide-a-container-parent-resource-name-from-the-url#dis-post-552381 Mon, 10 Jul 2017 10:52:23 +0000 https://forums.modx.com/thread/102524/furls---is-it-possible-to-hide-a-container-parent-resource-name-from-the-url#dis-post-552381
<![CDATA[Make UltimateParent title a link]]> https://forums.modx.com/thread/102387/make-ultimateparent-title-a-link#dis-post-551704 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:

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

[[!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]]>
https://forums.modx.com/thread/102387/make-ultimateparent-title-a-link#dis-post-551704 Tue, 13 Jun 2017 01:47:48 +0000 https://forums.modx.com/thread/102387/make-ultimateparent-title-a-link#dis-post-551704
<![CDATA[Tagger - How to auto-generated pages]]> https://forums.modx.com/thread/97944/tagger---how-to-auto-generated-pages#dis-post-550740
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`]]
</div>

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]]>
https://forums.modx.com/thread/97944/tagger---how-to-auto-generated-pages#dis-post-550740 Mon, 15 May 2017 03:37:57 +0000 https://forums.modx.com/thread/97944/tagger---how-to-auto-generated-pages#dis-post-550740
<![CDATA[How to speed up multiple Tagger calls]]> https://forums.modx.com/thread/96105/how-to-speed-up-multiple-tagger-calls#dis-post-550584
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]]>
https://forums.modx.com/thread/96105/how-to-speed-up-multiple-tagger-calls#dis-post-550584 Tue, 09 May 2017 04:01:40 +0000 https://forums.modx.com/thread/96105/how-to-speed-up-multiple-tagger-calls#dis-post-550584
<![CDATA[Wayfinder Sort Options]]> https://forums.modx.com/thread/39467/wayfinder-sort-options#dis-post-549804
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.


Thanks,

Matt]]>
https://forums.modx.com/thread/39467/wayfinder-sort-options#dis-post-549804 Fri, 31 Mar 2017 01:31:44 +0000 https://forums.modx.com/thread/39467/wayfinder-sort-options#dis-post-549804
<![CDATA[Help with dropdown menu in wayfinder]]> https://forums.modx.com/thread/76211/help-with-dropdown-menu-in-wayfinder?page=3#dis-post-549391
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]]>
https://forums.modx.com/thread/76211/help-with-dropdown-menu-in-wayfinder?page=3#dis-post-549391 Tue, 14 Mar 2017 01:05:24 +0000 https://forums.modx.com/thread/76211/help-with-dropdown-menu-in-wayfinder?page=3#dis-post-549391
<![CDATA[Taxonomies extra not working]]> https://forums.modx.com/thread/101780/taxonomies-extra-not-working#dis-post-548954
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 )
]]>
https://forums.modx.com/thread/101780/taxonomies-extra-not-working#dis-post-548954 Sat, 25 Feb 2017 06:31:25 +0000 https://forums.modx.com/thread/101780/taxonomies-extra-not-working#dis-post-548954
<![CDATA[Taxonomies: getPagesbyTerm]]> https://forums.modx.com/thread/97545/taxonomies-getpagesbyterm#dis-post-548914 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.]]>
https://forums.modx.com/thread/97545/taxonomies-getpagesbyterm#dis-post-548914 Fri, 24 Feb 2017 08:25:32 +0000 https://forums.modx.com/thread/97545/taxonomies-getpagesbyterm#dis-post-548914
<![CDATA[Sorting Tagger tags in Manager]]> https://forums.modx.com/thread/98736/sorting-tagger-tags-in-manager#dis-post-547674 https://forums.modx.com/thread/98736/sorting-tagger-tags-in-manager#dis-post-547674 Fri, 30 Dec 2016 02:55:11 +0000 https://forums.modx.com/thread/98736/sorting-tagger-tags-in-manager#dis-post-547674 <![CDATA[Tagger - upgrade bug? 1.5.0 to 1.7.0]]> https://forums.modx.com/thread/98131/tagger---upgrade-bug-1-5-0-to-1-7-0#dis-post-546376
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?]]>
https://forums.modx.com/thread/98131/tagger---upgrade-bug-1-5-0-to-1-7-0#dis-post-546376 Tue, 15 Nov 2016 04:09:10 +0000 https://forums.modx.com/thread/98131/tagger---upgrade-bug-1-5-0-to-1-7-0#dis-post-546376
<![CDATA[Add aria-labels to Wayfinder Nav]]> https://forums.modx.com/thread/101143/add-aria-labels-to-wayfinder-nav#dis-post-546011
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]]>
https://forums.modx.com/thread/101143/add-aria-labels-to-wayfinder-nav#dis-post-546011 Fri, 28 Oct 2016 01:09:03 +0000 https://forums.modx.com/thread/101143/add-aria-labels-to-wayfinder-nav#dis-post-546011
<![CDATA[Attach Template Variable to a Specified Resource]]> https://forums.modx.com/thread/100868/attach-template-variable-to-a-specified-resource#dis-post-545554 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...]]>
https://forums.modx.com/thread/100868/attach-template-variable-to-a-specified-resource#dis-post-545554 Sat, 08 Oct 2016 07:14:16 +0000 https://forums.modx.com/thread/100868/attach-template-variable-to-a-specified-resource#dis-post-545554
<![CDATA[Custom template for nav pages in getPage]]> https://forums.modx.com/thread/100998/custom-template-for-nav-pages-in-getpage#dis-post-545333
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!]]>
https://forums.modx.com/thread/100998/custom-template-for-nav-pages-in-getpage#dis-post-545333 Wed, 28 Sep 2016 08:15:02 +0000 https://forums.modx.com/thread/100998/custom-template-for-nav-pages-in-getpage#dis-post-545333
<![CDATA[Tagger and Sub-categories]]> https://forums.modx.com/thread/99132/tagger-and-sub-categories#dis-post-540177 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!]]>
https://forums.modx.com/thread/99132/tagger-and-sub-categories#dis-post-540177 Tue, 05 Apr 2016 02:16:15 +0000 https://forums.modx.com/thread/99132/tagger-and-sub-categories#dis-post-540177
<![CDATA[Taxonomy: getPagesByTerm doesn't work]]> https://forums.modx.com/thread/98776/taxonomy-getpagesbyterm-doesn-t-work#dis-post-540136
I'm really new to MODX and tried to build up categories for the articles.
I installed Taxonomy and I created terms under the part "Category". I also created articles which are "member" of the terms.
Going back to one term and looking at the Tab "Pages" I can see two pages which are "member" of this Term.
But if I try to take a look of the members with this code, nothing happens:

<h3>[[*pagetitle]]</h3>
[[getPagesByTerm]]

This code is implemented at every term as "Content". I get the pagetitle and nothing else.
I don't know what is wrong. There are no erros on the server and everything seems be normal. Nothing special in the logfiles.
I hope anyone can help me.

Thanks,
Jens]]>
https://forums.modx.com/thread/98776/taxonomy-getpagesbyterm-doesn-t-work#dis-post-540136 Mon, 04 Apr 2016 04:00:38 +0000 https://forums.modx.com/thread/98776/taxonomy-getpagesbyterm-doesn-t-work#dis-post-540136