On 3/2/07, Tegan Dowling <[EMAIL PROTECTED]> wrote: > On 3/2/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > On Fri, 2 Mar 2007, Tegan Dowling wrote: > > > > >>> Suppose the visitor doesn't have read permission to Target2. Do > > >>> they then see ... ? > > >>> > > >>> * Target 1 > > >>> * > > >>> * Target 3 > > >> > > >> That depends on what Tegan (?) wants I guess. As I understood it, the > > >> name > > >> of the page should render as normal but not become a link? I.e. > > >> > > >>> * Target 1 (link) > > >>> * Target 2 (not link) > > >>> * Target 3 (link) > > >> > > >> Don't know how this would affect trails though. > > > > > > Oh, no, I was hoping for it not to render at all. I was looking for a > > > short-hand for > > > > > > (:if auth read Target 1:) > > > [[Target 1]](:ifend:) > > > > Ok, I misunderstood you then. But that in itself is not a problem, there > > could simple be one directive > > (:links-to-unaccessible-pages-should-not-render-as-links:) > > and another one: > > (:links-to-unaccessible-pages-should-not-be-shown-at-all:) > > > > Both ways are fine. However, I'm less clear on why you would like this. > > The name of the page will still be in the source of the page, right? > > > > Maybe you could give an example of the context? (Will you have item lists > > for instance?) > > I'd like to use it like this: > > (:if enabled AuthPw:) > Your password provides access to: > (:if auth read Target 1:) > * [[Target 1]](:if auth read Target 2:) > * [[Target 2]](:if auth read Target 3:) > * [[Target 3]](:ifend:) > > It's true that ?action=source would display all targets to someone who > is not logged in, or whose password doesn't give access to all > targets, but that security hole is closed if I set in my > config.php: $HandleAuth['source'] = 'edit'; > > The (:links-to-unaccessible-pages-should-not-be-shown-at-all:) markup > would still be useful even if it meant that I couldn't have a bulleted > list, although the bulleted list might have come in handy, not only > for formatting purposes, but for wikitrails. Too bad.
On the third hand, this is probably silly. The markup to get the behavior that I want is plainly available already, in its not-terribly-onerous form above. In deference to the principle of avoiding feature-creep, I'm content to let this go. _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
