Tags:
create new tag
, view all tags

Question

Hi all -- I am wanting to apply Preference variables to a template, which I will then use throughout a web. However, the docs indicate that Preferences only work at the Web and User level -- i.e. they can't be attributes of a topic template.

My use case is this:

Use the following preference variables in a topic template to eliminate the edit box for purely form-based topics:


SET EDITBOXHEIGHT = 0

SET EDITBOXWIDTH = 0

Help is appreciated! Thanks.

Environment

TWiki version: TWikiRelease04x02x03
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS
Web server: Apache
Perl version: 5.8.8
Client OS: WindowsXP
Web Browser: MozillaFirefox
Categories: Skin

-- BenSommer - 24 Nov 2008

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.

You can set preferences settings on a page level; it will affect only the current page. This also works if put in a template topic, e.g. instantiated topics will inherit the preferences settings.

For special topics you can set a specific view template or edit template, e.g. you have control over how the page layout in view mode and edit mode. Study TWikiTemplates. See also PatternSkinCustomization.

-- PeterThoeny - 24 Nov 2008

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

-- PeterThoeny - 02 Jan 2009

 
Change status to:
Topic revision: r3 - 2009-01-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.