seajay,
Thank you for purchasing the Tag Module!!
To show the Tags assigned to an entry, you’ll need to use the Tag:Tags loop… just use the following code:
{exp:tag:tags entry_id="{entry_id}" type="weblog" backspace="2" orderby="clicks" sort="desc" limit="10"}
<a href="{path='tags/tag'}{websafe_tag}" title="{tag_name}">{tag}</a>,
{/exp:tag:tags}
You would stuff that inside the Weblog:Entries loop if using on a page with multiple entries (archive list, etc), though I believe you can use it outside of the weblog:entries loop on a single entry page. Needless to say, a very basic example would look like this:
{exp:weblog:entries}
{title}<br />
{body}<br />
Tags: {exp:tag:tags entry_id="{entry_id}" type="weblog" backspace="2" orderby="clicks" sort="desc" limit="10"}
<a href="{path='tags/tag'}{websafe_tag}" title="{tag_name}">{tag}</a>,
{/exp:tag:tags}<br /><br />
{/exp:weblog:entries}
I’m assuming you’ll want to have each Tag linked to a template that will show all entries with that Tag…
To do so, following the Tag:Entries documentation, your code for the Tag:Entries code might look something like this:
<h1>{exp:tag:tag_name}</h1>
{exp:tag:entries inclusive="yes" orderby="entry_date" sort="asc" limit="20" paginate="bottom"}
<p>{title}</p>
<p>{body}</p>
<br /><br />
{paginate}
<p>{pagination_links}</p>
{/paginate}
{/exp:tag:entries}
{exp:tag:tag_name} automatically outputs the Tag(s) being “searched” for that page.
In the Tag:Entries loop, all of your weblog:entries variables and conditionals are available as well
One thing to note is that in my first example, you might have noticed the Tag word was linked to ‘tags/tag’
The ‘tags’ part refers to the template path, and the ‘tag’ part is NOT actually a template… it’s only a trigger in the URL for the Tag:Entries loop. So the path could very well look like:
‘template_group/template/tag’
Just be sure to keep the ‘tag’ part in the path.