Tags:
create new tag
view all tags

SID-01201: Best location to define an attachment as a variable?

Status: Answered Answered TWiki version: Perl version:
Category: CategoryAttachments Server OS: Last update: 14 years ago

I am trying to define a html file as a sitewide variable, so i attached it it the MainTwiki.Preferences, and it showed in the variable definition. I then went to the main page of the website and tried to call the variable, and it says that the attachment doesn't exist for that page, do I have to attach it to every single place I want to use it or is there somewhere that i can just attach it once and keep using it?

-- AndreaHaines - 2011-06-08

Discussion and Answer

Make sure the setting is a proper bullet in your Main.TWikiPreferences page. Example for %MYTESTFILE%, assuming you attached test.html to the Sandbox.WebHome page:

  • Set MYTESTFILE = %PUBURL%/Sandbox/WebHome/test.html

-- PeterThoeny - 2011-06-08

      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 Best location to define an attachment as a variable?
SupportCategory CategoryAttachments
TWiki version

Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2011-06-08 - 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.