<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Mangal;
        panose-1:0 0 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:Mangal;
        panose-1:0 0 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Tahoma","sans-serif";
        color:#537959;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Tahoma","sans-serif";
        color:#537959;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Tahoma","sans-serif";
        color:#215868;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'>On Jan 30, 2008 4:58 PM, Hans
<design5@softflow.co.uk> wrote:<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'>> For talk-page linking see<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'>>
http://www.pmwiki.org/wiki/Cookbook/SimpleDiscussLink<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'>That's the one I am trying
out-- any hints on how to integrate it into<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'>the skin rather than as a page
content item would be appreciated...<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:1.0in'>I'm not clear on how and where
wikimarkup integrates with the skins...<o:p></o:p></p>
<p class=MsoPlainText style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:windowtext'>I
am using a different method for Discussion pages:<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:windowtext'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:windowtext'>I
have the following in my Site.PageActions:<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:windowtext'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:windowtext'>*
%item rel=nofollow class=discuss
'%[[Discussion.{*$Group}-{*$Name}?action=view | $[Discussion] ]]<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'>For
any given page Group.Pagename, the page action takes me to
Discussion.Group-Pagename. As you can see, all these pages belong to the group
“Discussion”.<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'>I have
a “Commentbox” from the <a
href="http://www.pmwiki.org/wiki/Cookbook/CommentBoxPlus">Commentboxplus</a>
recipe in the Discussion.GroupFooter. This makes sure that the user never needs
to go the ‘Edit’ action for the discussion page. (of course, one
can use any other commentbox recipe, including Fox).<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'>I also
have a Discussion.PageActions page with the following links:<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>*
%item rel=nofollow class=back accesskey=$[ak_back]%[[@3@{*$Name}@3@}?action=browse
| $[View] ]]<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>*
%item rel=nofollow class=edit
accesskey=$[ak_edit]%[[@3@{*$Name}@3@}?action=edit | $[Edit] ]]<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>*
%item rel=nofollow class=discuss
accesskey=$[ak_discuss]%[[{*$FullName}?action=browse | $[Discussion] ]]<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>*
%item class=diff accesskey=$[ak_history]%[[@3@{*$Name}@3@}?action=diff |
$[History] ]]<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>*
%item class=upload accesskey=$[ak_attach]%[[@3@{*$Name}@3@}?action=upload |
$[Attach] ]] <o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>*
%item class=print accesskey=$[ak_print]%[[{*$FullName}?action=print | $[Print]
]]<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'>As you
can see, the View, Edit etc. actions have the special markup which strips the
“Discussion” from the page name. <o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'>In my
config.php, I have the following custom markup (credit for this goes to John
Rankin; Thank you!):<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'># to
enable backliks in the discussion tabs<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:1.0in'><span style='color:black'>Markup("@3@",
"inline", "/@3@(.*?)@3@/e",
'str_replace("-",".","$1")');<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:black'>This
ensures that all the page actions behave as if they still belong to the
original page. This works quite well for me. I did not have to bother with any
modifications to skins etc.<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='color:#215868'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:#215868'><o:p> </o:p></span></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#215868'>I have just realized that the method I describe is already
documented here towards the bottom:<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#215868'><a
href="http://www.pmwiki.org/wiki/Cookbook/CommentPageLink#discussion">http://www.pmwiki.org/wiki/Cookbook/CommentPageLink#discussion</a>
<o:p></o:p></span></b></p>
<p class=MsoPlainText><span style='color:#215868'><o:p> </o:p></span></p>
</div>
</body>
</html>