Hi,
I have an online store, and am using Tagger to create tags for 'Manufacturers' for each product.
I also have a resource for each manufacturer, so that, if you want to see all the products filtered by manufacturer.
That part works fine using:
[[getResources?
&tpl=`groupedProductsTpl`
&parents=`29`
&includeTVs=`1`
&where=`
[[!TaggerGetResourcesWhere?
&tags=`brand-rex`
&groups=`2`
]]
`]]
But, where I'm having trouble is on the individual product pages.
For each product i want to show a link to the manufacturer page so they can view the above page.
In my TPl I can display the tag associated with that product which brings up the manufacturer's name (the tag) but I need to generate a link to the above page - there is an [[+alias]] field for each tag, but if I use '[[+alias]] in my tpl, it uses the alias to the product, rather that the alias of the tag, I'm assuming because there is a conflict.
This is my tpl:
<p>Manufacturer: [[TaggerGetTags? &resources=`[[+id]]` &groups=`2` &target=`50` &rowTpl=`@INLINE <a href="[[~50]][[+tag]]">[[+tag]]</a>`]]</p>
Resource id 50 is my manufacturer landing page, so I'm trying to generate the url - the problem is that I need the tags alias, rather than the tag itself - is there a way to grab this?