[ic] ITL in item comments.
Kevin Walsh
kevin at cursor.biz
Wed Feb 9 10:31:32 EST 2005
Davor Ocelic [docelic at mail.inet.hr] wrote:
> Peter [peter at pajamian.dhs.org] wrote:
> > Is the restrict tag used to allow ceartain tags to be input by ceartain
> > users, or does it restrict which tags can be output in a block of code
> > on an page irregardless of who entered the data being output? How does
> > it work?
> >
> * Add ability to restrict tag execution in a region. If a restricted tag
> is encountered, it is simply output. Based on an idea from Jon Jensen.
>
> [restrict policy=deny*|accept enable="tag1 tag2" disable="tag1 tag2"]
> restricted area [/restrict]
>
> options:
> policy "allow" or "deny". Default is deny.
> enable space or comma-separated list of tag names, including
> UserTag names.
> disable space or comma-separated list of tag names,
> including UserTag names.
>
> For instance, this:
>
> [restrict enable=page]
> [area something]
> [page aboutus]A link[/page]
> [/restrict]
>
> will output something like:
>
> [area something]
> <a href="http://sam.heins.net/cgi-bin/mfound/aboutus.html">A link</a>
>
> Defaults are important:
>
> interpolate=0
> reparse=0
>
> It would defeat the purpose to set interpolate or reparse, but it can
> be done.
>
By the way, Peter, the WHATSNEW files can be very helpful when you
can't find the information on a "new" feature anywhere else.
For instance, above text came from the "4.7 through 4.8" WHATSNEW file,
a copy of which can be found here:
http://www.interchange.rtfm.info/whatsnew/index.html
You'll find lots of other interesting features in those files as well.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list