SID-00943: How to control doc to be partially viewable
| Status: |
Answered |
TWiki version: |
4.1.1 |
Perl version: |
|
| Category: |
CategoryRendering |
Server OS: |
AIX/Linux |
Last update: |
15 years ago |
Is it possible to control a doc so that only certain people can view a specific part of the doc?
We are thinking about having one page containing a full set of data, and having a second page that only displays parts of the first page. But we don't want to manage them seperately, so if we modify data on the first page, then ideally the content for the second page also changes correspondingly.
Is this feasible? if yes, how can we do it?
--
ZhaoWang69 - 2010-08-11
Discussion and Answer
There are two options:
1. Use INCLUDE: Use a
%INCLUDE{}% of an access restricted page. People who have access will see the included content, other people won't see any included text. More at
VarINCLUDE,
IncludeTopicsAndWebPages.
2. Use IF: Use conditional
%IF{}% to selectively hide text. This is not secure because people can do a raw view or edit to see the text. More at
VarIF,
IfStatements.
--
PeterThoeny - 2010-08-15
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.