We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

Hi,

If I'm in a template, I can do something like:

%IF{ "defined ALLOWWEBVIEW and $ ALLOWWEBVIEW ='' ...

however if instead I want to check to see if the current topic I'm on has ALLOWTOPICVIEW defined, the same syntax doesn't work. I figured out how to expand the variable by using %ALLOWTOPICVIEW%, but that doesn't help with the initial check I need to do.

Is there a way for me to do the same check with topic level variables?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Skin

-- MichelleHedstrom - 14 Aug 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Can you give an example? I'm not clear exactly what you are trying to do....

-- CrawfordCurrie - 22 Sep 2007

Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.

-- PeterThoeny - 01 Nov 2007

 
Change status to:
Topic revision: r3 - 01 Nov 2007 - 07:35:32 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback