I’m using the {exp:comment:entries} tag like so:
{exp:comment:entries sort="desc" orderby="date" limit="6" dynamic="off" weblog="blog | work"}
<a class="footerLinks" href="{title_permalink="stormoftheeye/workArticle"}">{comment}</a>
<!--<p>From "{title}"</p>-->
{/exp:comment:entries}
Perhaps it’s best if I give an example of what I’m trying to achieve (Although this site is made with WordPress):
http://www.ndesign-studio.com/
There’s a “recent comments” list in the footer here; the items in the list link to the relevant article.
The code I’ve pasted above works fine if the articles are in the “work” Weblog (displayed in the “workArticle” template). If that was all I needed, I’d be happy as Larry! But my list of commented articles also features some from another Weblog. The line of code
<a class="footerLinks" href="{title_permalink="stormoftheeye/workArticle"}">{comment}From the entry "{title}"</a>
is, as you can see, creating an <a> with a permalink to the “workArticle” template.
Ideally I want a piece of code which goes like this (bear with my idiotic logic!)
IF the article in the list is in the weblog “work” THEN <a class=“footerLinks” href=”{title_permalink=“stormoftheeye/workArticle”}”> BUT IF the article in the list is in the weblog “blog” THEN <a class=“footerLinks” href=”{title_permalink=“stormoftheeye/article”}”>