<div class="gmail_quote">On Fri, Apr 10, 2009 at 5:06 PM, Chris Lott <span dir="ltr">&lt;<a href="mailto:chris.lott@gmail.com">chris.lott@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I&#39;m using a link like the following to create &quot;discussion&quot; pages on my site:<br>
(:if ! match -comments$ :)*%rel=nofollow%[[{$Name}-comments | Discuss]](:if:)<br>
<br>
I&#39;d like to refine this in a few ways:<br>
<br>
1) indicate visually somehow whether the page exists</blockquote><div><br></div><div>For my comments page (which I call &quot;Discussion&quot;) I am using the directions provided on this page:</div><div><a href="http://www.pmwiki.org/wiki/Cookbook/CommentPageLink">http://www.pmwiki.org/wiki/Cookbook/CommentPageLink</a></div>

<div><br></div><div>I am providing a visual clue by changing the link for the comment page to red color if the page does not exist. It is achieved by the following in the Site/PageActions page:</div><div><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: 16px; "><pre style="word-wrap: break-word; white-space: pre-wrap; ">

<span class="Apple-style-span" style="font-size: small;"><font class="Apple-style-span" face="arial, helvetica, sans-serif">(:if exists Discussion.{*$Group}-{*$Name} :)
* %item class=discuss accesskey=$[ak_edit]%[[Discussion.{*$Group}-{*$Name} | $[Discussion] ]] 
(:else:)
* %item red class=discuss accesskey=$[ak_edit]%[[Discussion.{*$Group}-{*$Name} | $[Discussion] ]] 
(:ifend:)</font></span></pre></span></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
2) have a link on the comments page back to the page being commented on</blockquote><div><br></div><div>Please see the above page (<a href="http://www.pmwiki.org/wiki/Cookbook/CommentPageLink">http://www.pmwiki.org/wiki/Cookbook/CommentPageLink</a>); look under &quot;Automating the whole thing&quot;. It shows you how to achieve what you are looking for. I have setup my wiki in exactly that way and it works perfectly.</div>

<div><br></div><div>Sameer</div></div><br>