Re: [pmwiki-devel] Is 'RightBar' the right name?

2007-05-22 Thread DaveG
Use contextual naming. That is, name the sidebars based on the type of content they will contain (TOC, MainMenu, SubMenu, etc). ~ ~ Dave On Tue, 22 May 2007 13:44:37 +0200, Jiri Hladůvka / OBUTEX [EMAIL PROTECTED] wrote: ehm, what about NightBar / DailyBar :-) Stirling Westrup

Re: [pmwiki-devel] Is 'RightBar' the right name?

2007-05-22 Thread Stirling Westrup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DaveG wrote: Stirling Westrup napsal(a): I'm working on a skin for a project and its going to have both a sidebar and an (optional) rightbar. I'm not sure that 'rightbar' is what I should be referring to it as though. One of the configuration

Re: [pmwiki-devel] Is 'RightBar' the right name?

2007-05-22 Thread Stirling Westrup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon Haupt wrote: On 5/22/07, DaveG [EMAIL PROTECTED] wrote: Use contextual naming. That is, name the sidebars based on the type of content they will contain (TOC, MainMenu, SubMenu, etc). ~ ~ Dave I agree with Dave. I've been trying to move

[pmwiki-devel] MatchPageNames

2007-05-22 Thread Hans
It seems (boolean)MatchPageNames returns 1 if no match to pattern is found. Is this supposed to be like this, or a bug? I would have expected it to return 0 or nothing if no match is found. I need a return of 1 only of a match is found. Hans ___

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Patrick R. Michaud
On Tue, May 22, 2007 at 09:13:22PM +0100, Hans wrote: It seems (boolean)MatchPageNames returns 1 if no match to pattern is found. Is this supposed to be like this, or a bug? I would have expected it to return 0 or nothing if no match is found. I need a return of 1 only of a match is found.

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Hans
Tuesday, May 22, 2007, 9:47:03 PM, Patrick wrote: Any chance you could give an example of code that is showing the wrong value? In fox.php a permission pattern check is done: $namecheck = (boolean)MatchPageNames($targetname,$pnames); $pnames is a string with page name patterns, separated

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Patrick R. Michaud
On Tue, May 22, 2007 at 10:04:08PM +0100, Hans wrote: Tuesday, May 22, 2007, 9:47:03 PM, Patrick wrote: Any chance you could give an example of code that is showing the wrong value? For instance this: echo (boolean)MatchPageNames('Forum.Test1','-PmWiki.*,-Site.*'); will echo 1.

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Hans
Tuesday, May 22, 2007, 10:17:44 PM, Patrick wrote: echo (boolean)MatchPageNames('Forum.Test1','-PmWiki.*,-Site.*'); will echo 1. But the target page is not part of the pattern. U, yes it is. The pattern says all pages that are not in the PmWiki or Site groups, and since

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Patrick R. Michaud
On Tue, May 22, 2007 at 11:02:18PM +0100, Hans wrote: Tuesday, May 22, 2007, 10:17:44 PM, Patrick wrote: echo (boolean)MatchPageNames('Forum.Test1','-PmWiki.*,-Site.*'); will echo 1. But the target page is not part of the pattern. U, yes it is. The pattern says all pages that

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Hans
Tuesday, May 22, 2007, 11:22:30 PM, Patrick wrote: In a pagelist command, if someone does (:pagelist name=-PmWiki.*,-Site.* :) then they expect to see all pages that aren't in the PmWiki or Site groups. They don't expect it to return zero pages because there weren't any inclusive

Re: [pmwiki-devel] Is 'RightBar' the right name?

2007-05-22 Thread Kathryn Andersen
On Tue, May 22, 2007 at 07:40:46PM +0100, Hans wrote: Tuesday, May 22, 2007, 10:43:48 AM, Stirling wrote: I'm working on a skin for a project and its going to have both a sidebar and an (optional) rightbar. I'm not sure that 'rightbar' is what I should be referring to it as though. One of