<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>if directive and pagelist and LocalTemplate</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">Hello all</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">I&#8217;am confronted with a « undocumented features » maybe and I want your opinion. </FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">I describe here the full chain of directives I use, maybe it is too much, but you will have the maximum of inform</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">a</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">tion</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">We start with the level of a group sidebar. It contains only one thing : an include of a common page</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS"> in another group, the page is called DefaultIncludeSideBar</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">This page contains several if and pagelist directives.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">Each pagelist use its own template in LocalTemplates.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">And it is there my problem. This is an exemple</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">o</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">f the templates :</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">[[#favorites]]</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:if name *EMSQUERY* :)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:table:)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:cellnr:)[[{=$FullName}?action=graphdel|skin:croix.jpg&quot;delete from your profile&quot;]]</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:cell:)[[{=$Group}/{=$DefaultEMSQueryGroupName}-{=$DefaultEMSQueryGroupName}?action=PTV&amp;page={=$FullName}?|EMSQuerY ]]</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:tableend:)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:ifend:)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:if name -*EMSQUERY* :)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:table:)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:cellnr:)[[{=$FullName}?action=graphdel|skin:croix.jpg&quot;delete from your profile&quot;]]</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:cell:)[[{=$FullName}?action=fullscreen|skin:chart_line_error.png&quot;View full screen&quot;]]</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:cell:)[[{=$FullName}|{=$Title}]]</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:tableend:)</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">(:ifend:)</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<BR>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">The if directive returns always false excepted when the page contains emsquery.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">So my conclusion is : in the case of a pagelist, the &#8220;name&#8221;</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">test uses</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS"> the current page name and not a pagename coming from the pagelist</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">, by opposite of the wiki vari</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">a</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">bles like $FullName</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">In my case it is really not what I want, as you can imagine.</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS"> And is it normal?</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> </SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">We use</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS"> pmwiki</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">2.2.0-beta44</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">Thanks for the help!</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Trebuchet MS">Stéphane </FONT></SPAN></P>
<BR>
<BR>
<BR>
<BR>
<BR>


<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">&nbsp;</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">sa Banksys nv - Chaussee de Haecht 1442 Haachtsesteenweg </span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">- 1130 Brussels - Belgium</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">Bankrekening-Compte Bancaire-Bank Account 310-0269424-44</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">BIC BBRUBEBB - IBAN BE55 3100 2694 2444</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;"></span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">&nbsp;</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">&quot;The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">This information is intended for the exclusive use of the recipient(s) named above.</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">This e-mail does not constitute any binding relationship or offer toward any of the addressees.</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">If you have received this message in error, please notify the sender and destroy it immediately after.</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability.&quot;</span></p>
<p><span style="font-family:'MS Sans Serif';font-size:8.2pt;">&nbsp;</span></p></BODY>
</HTML>