<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>I'm using PmWiki 2.1. I keep my content and talk pages separated by group, using the same page name. The group name simply has the suffix "Talk". For example MyGroup.MyPage and MyGroupTalk.MyPage.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-style-span">I want to put a link on the Sidebar, so that when I'm on any Talk page the user can go to its content page. (The other direction is easy: {$Group)Talk.{$Name}.) How do I extract the current group name <I>minus</I> the "Talk" suffix, so I can do {$GroupBaseName).{$Name}?</SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Randy</DIV></SPAN><SPAN></SPAN><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><BR class="Apple-interchange-newline"><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>