Changes between Initial Version and Version 1 of ProtectedMacro


Ignore:
Timestamp:
Dec 5, 2008, 9:32:54 AM (15 years ago)
Author:
frayja
Comment:

New hack ProtectedMacro, created by frayja

Legend:

Unmodified
Added
Removed
Modified
  • ProtectedMacro

    v1 v1  
     1= Protect parts of a wiki page from invalid access =
     2
     3== Description ==
     4
     5With this plugin certain parts of a wiki page can be shielded from reading.
     6
     7There are four explicit permissions. PROTECTED_VIEW, PROTECTED_RED_VIEW, PROTECTED_BLUE_VIEW, and PROTECTED_GREEN_VIEW. Each of these permissions allows view access to different parts (as seen in the examples below)
     8
     9A #!protected part will be rendered with a red line to the left, a #!protected-blue part will be rendered with a blue line to the left, etc.
     10
     11Note: a user who is allowed to edit the wiki page will always be able to see (and edit) protected parts.
     12
     13Improvements:
     14 * Supply an admin feature to add/edit permission-xxx
     15 * Supply an admin feature to edit the default responce when no access is granted
     16 * Supply an admin feature to edit the style/template for a permission part
     17
     18== Bugs/Feature Requests ==
     19
     20Existing bugs and feature requests for ProtectedMacro are
     21[report:9?COMPONENT=ProtectedMacro here].
     22
     23If you have any issues, create a
     24[http://trac-hacks.org/newticket?component=ProtectedMacro&owner=frayja new ticket].
     25
     26== Download ==
     27
     28Download the zipped source from [download:protectedmacro here].
     29
     30== Source ==
     31
     32You can check out ProtectedMacro from [http://trac-hacks.org/svn/protectedmacro here] using Subversion, or [source:protectedmacro browse the source] with Trac.
     33
     34== Example ==
     35
     36{{{
     37{{{
     38#!protected
     39This will only be visible to those that have PROTECTED_VIEW
     40Will show all content with a red line to the left
     41}}}
     42
     43{{{
     44#!protected-red
     45This will only be visible to those that have PROTECTED_RED_VIEW
     46Will show all content with a red line to the left
     47}}}
     48
     49{{{
     50#!protected-blue
     51This will only be visible to those that have PROTECTED_BLUE_VIEW
     52Will show all content with a blue line to the left
     53}}}
     54
     55{{{
     56#!protected-green
     57This will only be visible to those that have PROTECTED_GREEN_VIEW
     58Will show all content with a green line to the left
     59}}}
     60}}}
     61
     62== Recent Changes ==
     63
     64[[ChangeLog(protectedmacro, 3)]]
     65
     66== Author/Contributors ==
     67
     68'''Author:''' [wiki:frayja] [[BR]]
     69'''Contributors:'''