Hey all,
I'm trying to implement a blog design using articles. I'm finding my way around most of the stuff in the default articles templates, but I'm running into a bit of a tough spot.
On the sidebar, I have a call to generate the tags:
and my tag listing chunk in the advanced settings tab is called "sidetag", with the contents of my sidetag chunk being:
<li class="cat-item">
<a href="[[++site_url]][[+url]]">[[+tag]]</a>
</li>
-This portion of the site is outputting what I would like it to, however using the tolinks snippet is not working out as well.
In the post preview section, I also want to display the tags for the individual post along with a preview of the post's content. Here is what I have in my template:
<div class="meta-tags">
[[!tolinks? &items=`[[+tv.articlestags]]` &target=`[[*id]]` &useTagsFurl=`1` &tpl=`linkstag`]]
</div>
the linkstag tpl contains:
<a href="[[++site_url]][[+url]]" class="[[+cls]]">[[+item]]</a>
Even with the above tpl, my code output is as follows:
<div class="meta-tags">
<a href="http://localhost/modx22pl/blog/tags/second" class="tl-tag">second</a>,
<a href="http://localhost/modx22pl/blog/tags/blog" class="tl-tag">blog</a>,
<a href="http://localhost/modx22pl/blog/tags/modx" class="tl-tag">modx</a>,
<a href="http://localhost/modx22pl/blog/tags/post" class="tl-tag">post</a>,
<a href="http://localhost/modx22pl/blog/tags/articles" class="tl-tag">articles</a>
</div>
My question is, where are these comma's coming from? I'm a rookie with modx, but I'm really trying to dive in. I'm 100+ pages into Bob Ray's book, which is a great jumping point. If I'm missing something obvious, please let me know.
The other idea I had was to just have another
call, but can I force it to use a separate tpl, or is the tpl defined in the advanced settings tab in Articles the only tpl I can use?
I did see this
https://forums.modx.com/thread/72495/tags-and-archives-listing-chunks---can-t-find#dis-post-403304 post, but I would assume from Shaun's post response, that default chunks with the default placeholders would appear after installing Articles, however, they are no where to be found in my install. Is this assumption correct, or is the default output for tags and archives defined elsewhere?
[ed. note: shick11sp last edited this post 14 years, 8 months ago.]