<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;"><br><br><div><span class="gmail_quote">On 4/1/07, <b class="gmail_sendername">Petko Yotov</b> &lt;5ko@free.fr&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sunday 01 April 2007 18:21, Manfred Schreiweis wrote:<br>&gt; Hi,<br><br>Currently we can not search for more than one page in the "link=" parameter,<br>so in the third example "link=Cat1,Cat2" is just ignored. It would be really<br>nice though, Patrick, if that became possible (also with<br>negatives "link=Cat1,-Cat2").<br><br>Petko<br><br><br></blockquote></div><br><br><br>Petko, you can have multiple links matched in pagelists, if you're willing to patch function PageListTermsTargets() in pagelist.php: <br><br><br>Replace the section beginning with <br>&nbsp; &nbsp; &nbsp; if (@$opt['link']) { <br>&nbsp;<br>With:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (@$opt['link']) { #!# JM-mod<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!is_array($opt['link']))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $opt['link']=explode(',',$opt['link']);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $link=array();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach($opt['link'] as $l) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $link[] = MakePageName($pn, $l);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $indexterms[] = " $l ";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $opt['=linkp'][] = "/(^|,)".implode('|',$link)."(,|$)/i";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>I believe this can be turned into a recipy after recent pagelist.php refactorings. <br><br>Usage example:<br><br>&nbsp;&nbsp; (:pagelist link=Grp1.Page1,Grp2.Page2 :)<br><br><br>I hope no recipy is need, but that this instead gets included into pmwiki. <br><br><br>/jm<br><br><br><br><br></div><br /><hr />It’s tax season, make sure to follow these few simple tips  <a href='http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=WLMartagline' target='_new'>Check it out!</a></body>
</html>