Re: [pmwiki-users] set default password according to a ptv

2009-01-10 Thread DaveG
nosk...@gmx.net wrote: > Yes it works, the problem seams to be that authuser only works if the > function PageTextVar is called after the defaultpassword definition. > PageTextVar uses the RetrieveAuthPage this may cause the problem, so I > guess I need try to get the ptv without authentifica

Re: [pmwiki-users] set default password according to a ptv

2009-01-10 Thread nosk...@gmx.net
DaveG wrote: > > One thing: > > $page = FmtPageName($pagename, '$Group.$Name' ); > > $SelfPagetype = PageTextVar($page, "pagetype"); > > Not sure what FmtPageName returns, but try removing that line and do > this instead: > $SelfPagetype = PageTextVar($pagename, "pagetype"); > > > Are you sure $

Re: [pmwiki-users] set default password according to a ptv

2009-01-09 Thread DaveG
One thing: > $page = FmtPageName($pagename, '$Group.$Name' ); > $SelfPagetype = PageTextVar($page, "pagetype"); Not sure what FmtPageName returns, but try removing that line and do this instead: $SelfPagetype = PageTextVar($pagename, "pagetype"); Are you sure $SelfPagetype is being set ok

[pmwiki-users] set default password according to a ptv

2009-01-09 Thread nosk...@gmx.net
hi list I stuck with a problem setting default password according to ptv's . The ptv's are used to define the type ( Blog, Article, Issue, Comment. ...) of a page. So, for example I would like to set the default password for blog-post to @authors and @nopass for comments. wikipage: - - - - -