Quote from: absent42 at Oct 20, 2013, 12:05 PMUse &tagSeparator in your call.
http://rtfm.modx.com/extras/revo/gallery/gallery.galleryitem
Hi Dan, thanks, but I have another problem:
Now tags without comma, but they are placed to html template with couple additional tags. Now I have in the frontend:
<li class="mix
<span class="gal-item-tag"><a href="Link-to-tag">Tag 1</a></span>
<span class="gal-item-tag"><a href="Link-to-tag">Tag 2</a></span>
data-cat="1"
">
<a href="link-to-image" rel="colorbox" title="">
<img class="" src="link-to-thumb" alt="paris" />
</a>
<span class="gal-item-tag"><a href="Link-to-tag">Tag 1</a></span>
<span class="gal-item-tag"><a href="Link-to-tag">Tag 2</a></span>
</li>
How I can remove unnesessary <span> and <a>? I need only tag name without any html tags.
What I tried:
I've put GalleryItem snippet call to GalItemThumb chunk:
<li class="mix [[!GalleryItem? &id=`[[*id]]` &toPlaceholders=`1` &tagTpl=`GalleryItemTagTpl` &tagSeparator=` `]][[+galitem.tags]] data-cat="1"">
<a href="[[+image]]" rel="colorbox" title="[[+description]]">
<img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
</a>
[[+galitem.tags]]
</li>
and created new chunk (GalleryItemTagTpl) for GalleryItem snippet trying to overwrite default tag output (unfortunately doesn't work):
Where I made mistake?