[pmwiki-users] link if the target page is writeable

Tegan Dowling tmdowling at gmail.com
Fri Mar 2 07:00:13 CST 2007


On 3/2/07, christian.ridderstrom at gmail.com
<christian.ridderstrom at gmail.com> wrote:
> On Thu, 1 Mar 2007, Patrick R. Michaud wrote:
>
> >> I think I'd prefer a directive that disables showing all links to
> >> non-readable pages, e.g.
> >>
> >>      [[Target page]]   - becomes link
> >>
> >>      (:no-links-to-nonreadable-pages:)
> >>
> >>      [[Target page]]   - does not become link
> >
> > But I suspect that a common usage pattern for something like
> > this would be in lists of various sorts:
> >
> >    * [[Target 1]]
> >    * [[Target 2]]
> >    * [[Target 3]]
> >
> > 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:)

But what to do when there's need for an asterisk or other extra-link
material inside the logical sequence?  I don't know.  I got nuthin'.
Shoot.



More information about the pmwiki-users mailing list