+ Reply to Thread
Results 1 to 3 of 3

Thread: Hide "This page is restricted."

  1. #1

    Default Hide "This page is restricted."

    When I transclude content from a restricted page, I want nothing to appear - as if it doesn't exist. Use case:

    Page A (permissions: group: Internal)
    This is page A.

    Page B (permissions: everyone)
    This is page B.
    {{wiki.page("..\Page_A")}}

    Output (currently):

    Page B (for non Internal)
    This is page B.
    This page is restricted.

    Output (should be):

    Page B (for non Internal)
    This is page B.

    Page B (for Internal)
    This is page B.
    This is page A.
    Last edited by scottro; 11-19-2010 at 07:11 PM.

  2. #2
    Join Date
    Jan 2012
    Posts
    89

    Default

    I am able to accomplish this in the latest version by removing the text from the parameter "page-is-restricted" in the resources.txt file.

  3. #3
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    There is also an extra parameter you can use to tell it not to show anything when the content is not available. I think it's called 'nilIfMissing'.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts