Tags:
create new tag
view all tags

Question

Hi All,

A small problem. I'm attempting to use the %EXPAND% TWikiVariable to escape the characters in a file URL within a forced link.

Example

%EXPAND{"file://a file with spaces.txt"}% - works just fine

[[%EXPAND{"file://a file with spaces.txt"}%][A sensible link name]] - does not work

Does TWiki expand variables first? If it does, how come this does not work?

Environment

TWiki version: 07 May 2004
TWiki plugins: DefaultPlugin, SpreadSheetPlugin, ChildTopicTemplatePlugin, EditTablePlugin, InterwikiPlugin, ListMenuPlugin, NotificationPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TextSectionPlugin
Server OS: Fedora Core 2
Web server: Apache/2.0.50
Perl version: 5.8.3
Client OS: Windows 2000
Web Browser: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3

-- SimonTurvey - 23 Aug 2004

Answer

It's always nice when you can eventually answer your own question smile

The quotes in the %EXPAND{}% variable are not required!

-- SimonTurvey - 26 Aug 2004

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