<![CDATA[ tagLister? Any examples? - My Forums]]> https://forums.modx.com/thread/?thread=39274 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-490775 Pfeifakopf Feb 21, 2014, 03:18 AM https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-490775 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-475014
[[!tolinks? &tagKey=`article_tags` &items=`[[+tv.article_tags]]` &outputDelim=` / ` &useTagsFurl=`1` &target=`5`]]

I get redirected to my default 404 page I designated in system settings. I have already tried using a custom tolinks template:
<a class="[[+cls]]" href="[[~[[+target]]]]/[[+tagKey]]/[[+tag:urlencode]]">[[+item]]</a>

Any pointers at what is causing this?]]>
northernape Aug 14, 2013, 08:34 PM https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-475014
<![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-470588 DavidJColbran Jul 02, 2013, 08:53 AM https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-470588 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-468828 Quote from: jrotering at Apr 22, 2013, 03:14 PM

The only problem is, I can't figure out how to stop it from showing up in the URL. 'tags' is the default value of 'tagKey' property in toLinks - so that's where it is coming from. But there doesn't seem to be a way to tell toLinks to NOT send that bit of the query string. The closest I've been able to come up with is
[[!toLinks? &items=`[[+tv.edp_resourcetags]]` &tagKey=`` &target=`4347`]]

...which sends it with an empty value:
?tag=grumble&key=


This works - my results page is showing results. But it feels like a frustrating hack. I want to understand what my code isn't doing that it should be, or what that value is supposed to be doing, or... something. Can anyone shed a light on this?

You have to use the same TVs name in 3 places to make it working, example:

[[!toLinks? &items=`[[+tv.your-tag-name]]` &tagKey=`your-tag-name` &target=`123`]]


and:

[[!getResourcesTag? &tagKey=`your-tag-name` &elementClass=`modSnippet` &element=`getResources` &parents=`321` &limit=`0` &tpl=`myTpl` ...]]


and that's it!]]>
godzio Jun 11, 2013, 05:57 PM https://forums.modx.com/thread/39274/taglister-any-examples?page=2#dis-post-468828
<![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-465357 Everettg_99 May 04, 2013, 04:12 PM https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-465357 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-463921
I'm having trouble with the flow from toLinks to getResourcesTag.

I'm using toLinks in my "tagged" resources, to provide a link to a "tag search results" page, which uses getResourcesTag. So far so good.

My toLinks call looks like this:
[[!toLinks? &items=`[[+tv.my_tag_tv]]`  &target=`4347`]]


The result is a call to resource 4347 with the following query string:
?tag=grumble&key=tags

(where grumble is the tag value).

Resource 4347 has this getResourcesTag call in it:
[[!getResourcesTag? &parents=`4303` &tagKey=`my_tag_tv` &limit=`0` &tpl=`myTpl` ...


This whole setup works... IF you remove the "key=tags" from the query string.

I'm not sure what purpose that is supposed to be serving, but removing it makes the results page show the desired results.

The only problem is, I can't figure out how to stop it from showing up in the URL. 'tags' is the default value of 'tagKey' property in toLinks - so that's where it is coming from. But there doesn't seem to be a way to tell toLinks to NOT send that bit of the query string. The closest I've been able to come up with is
[[!toLinks? &items=`[[+tv.edp_resourcetags]]` &tagKey=`` &target=`4347`]]

...which sends it with an empty value:
?tag=grumble&key=


This works - my results page is showing results. But it feels like a frustrating hack. I want to understand what my code isn't doing that it should be, or what that value is supposed to be doing, or... something. Can anyone shed a light on this?]]>
jrotering Apr 22, 2013, 03:14 PM https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-463921
<![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-417311 http://rtfm.modx.com/display/ADDON/tagLister trying to clarify this thing.]]> Everettg_99 Mar 23, 2012, 05:47 PM https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-417311 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-413950 ]]> gameship Feb 29, 2012, 05:06 AM https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-413950 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-413905 ]]> hsteel Feb 28, 2012, 11:16 PM https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-413905 <![CDATA[Re: tagLister? Any examples?]]> https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-403382
http://forums.modx.com/thread/11108/dynamically-generated-list-of-documents-that-are-tagged-with-categories?page=2#dis-post-397237

I was looking for the same solution as you did and I found the above solution so I thought of letting you know.]]>
gameship Dec 13, 2011, 08:26 PM https://forums.modx.com/thread/39274/taglister-any-examples#dis-post-403382