SID-01201: Best location to define an attachment as a variable?
| Status: |
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
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.