[pmwiki-users] EnableRelativePageVars in beta releases

Scott Connard connard at dsg-inc.com
Fri Dec 8 09:22:23 CST 2006


Patrick,

I have a site that I copy from production (running PmWiki 2.1.26) and  
the latest beta PmWiki.  Due to your change in semantics for page  
variables like {$FullName} things that work in production fail in the  
beta environment.  I know that $EnableRelativePageVars could be  
turned off in my beta environment, but I'd rather experience the  
whole new thing.

I was wondering why you didn't add conditional code to your beta  
release pages so that people could run with those pages regardless of  
their setting of $EnableRelativePageVars.

I would think there are other people in the same situation that this  
would help.  Comments?

Scott.

For example (because I'm not sure I have caught ALL of the  
occurrences)...

wikilib.d/Site.PageNotFound:
7c7,8
< (:if auth edit:)%rel=nofollow% ([[{$FullName}?action=edit | Create  
{$FullName}]])
---
 > (:if ( ! enabled EnableRelativePageVars && auth edit ) :)% 
rel=nofollow% ([[{$FullName}?action=edit | Create {$FullName}]])
 > (:if ( enabled EnableRelativePageVars && auth edit ) :)% 
rel=nofollow% ([[{*$FullName}?action=edit | Create {*$FullName}]])

wikilib.d/Site.EditForm:
0a1
 > (:if ! enabled EnableRelativePageVars:)
1a3,5
 > (:if enabled EnableRelativePageVars:)
 > !!$[Editing {*$FullName}] %block class=wikiaction%
 > (:if:)
12c16
< (:if e_preview:)
---
 > (:if ( ! enabled EnableRelativePageVars && e_preview ) :)
13a18,20
 > (:if ( enabled EnableRelativePageVars && e_preview ) :)
 > !!$[Preview {*$FullName}]
 > (:if e_preview:)

wikilib.d/Site.PageActions:
0a1
 > (:if ! enabled EnableRelativePageVars:)
4c5
< (:if auth upload:)
---
 > (:if ( ! enabled EnableRelativePageVars && auth upload ) :)
6c7
< (:if:)
---
 > (:if ! enabled EnableRelativePageVars:)
7a9,17
 > (:if enabled EnableRelativePageVars:)
 > * %item class=browse accesskey='$[ak_view]'%[[{*$FullName} | $ 
[View] ]]
 > * %item rel=nofollow class=edit accesskey='$[ak_edit]'%[[{* 
$FullName}?action=edit | $[Edit] ]]
 > * %item rel=nofollow class=diff accesskey='$[ak_history]'%[[{* 
$FullName}?action=diff | $[History] ]]
 > (:if ( enabled EnableRelativePageVars && auth upload ) :)
 > * %item rel=nofollow class=upload accesskey='$[ak_attach]'%[[{* 
$FullName}?action=upload | $[Attach] ]]
 > (:if enabled EnableRelativePageVars:)
 > * %item rel=nofollow class=print accesskey='$[ak_print]'%[[{* 
$FullName}?action=print | $[Print] ]]
 > (:if:)





More information about the pmwiki-users mailing list