[pmwiki-users] if directive and pagelist and LocalTemplate

SMETS Stephane BKS-IT stephane.smets at banksys.be
Thu May 3 03:08:30 CDT 2007


Hello all
I'am confronted with a « undocumented features » maybe and I want your opinion. 
I describe here the full chain of directives I use, maybe it is too much, but you will have the maximum of information.

We start with the level of a group sidebar. It contains only one thing : an include of a common page in another group, the page is called DefaultIncludeSideBar
This page contains several if and pagelist directives.
Each pagelist use its own template in LocalTemplates.

And it is there my problem. This is an exemple of the templates :

[[#favorites]]
(:if name *EMSQUERY* :)
(:table:)
(:cellnr:)[[{=$FullName}?action=graphdel|skin:croix.jpg"delete from your profile"]]
(:cell:)[[{=$Group}/{=$DefaultEMSQueryGroupName}-{=$DefaultEMSQueryGroupName}?action=PTV&page={=$FullName}?|EMSQuerY ]]
(:tableend:)
(:ifend:)
(:if name -*EMSQUERY* :)
(:table:)
(:cellnr:)[[{=$FullName}?action=graphdel|skin:croix.jpg"delete from your profile"]]
(:cell:)[[{=$FullName}?action=fullscreen|skin:chart_line_error.png"View full screen"]]
(:cell:)[[{=$FullName}|{=$Title}]]
(:tableend:)
(:ifend:)


The if directive returns always false excepted when the page contains emsquery.

So my conclusion is : in the case of a pagelist, the "name" test uses the current page name and not a pagename coming from the pagelist, by opposite of the wiki variables like $FullName
In my case it is really not what I want, as you can imagine. And is it normal? 
We use pmwiki 2.2.0-beta44

Thanks for the help!

Stéphane 








sa Banksys nv - Chaussee de Haecht 1442 Haachtsesteenweg 
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
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.
If you have received this message in error, please notify the sender and destroy it immediately after.
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."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070503/a74da08d/attachment.html 


More information about the pmwiki-users mailing list