Tags:
create new tag
view all tags

SID-00943: How to control doc to be partially viewable

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title How to control doc to be partially viewable
SupportCategory CategoryRendering
TWiki version 4.1.1
Server OS AIX/Linux
Web server Apache 2.2.3
Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-08-15 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.