• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

  1. JPEG - ICON{jpg}
  2. JPEG - ICON{file.jpg}
  3. JPEG - ICON{/path/to/file.jpg}
  4. JPEG - ICON{http://a.com/path/to/file.jpg}

  1. jpg.gif - ICONURL{jpg}
  2. jpg.gif - ICONURL{file.jpg}
  3. jpg.gif - ICONURL{/path/to/file.jpg}
  4. jpg.gif - ICONURL{http://a.com/path/to/file.jpg}

  1. /pub/TWiki/TWikiDocGraphics/jpg.gif - ICONURLPATH{jpg}
  2. /pub/TWiki/TWikiDocGraphics/jpg.gif - ICONURLPATH{file.jpg}
  3. /pub/TWiki/TWikiDocGraphics/jpg.gif - ICONURLPATH{/path/to/file.jpg}
  4. /pub/TWiki/TWikiDocGraphics/jpg.gif - ICONURLPATH{http://a.com/path/to/file.jpg}

Cases 2, 3, 4 of ICONURL and ICONURLPATH are not consistent with ICON, the path and filename should be stripped from the file type.

-- PTh

Old ICONPATH was meant to produce the actual file path to the existing icon, so it could be used in a template in a CSS style or as img src, like img src="%ICONURLPATH{web-bg-small}%" (which I use now).


Yes, that is what it is supposed to do. The inconsistency is if you write %ICONURLPATH{/something/else.web-bg-small}% which is never used in skins. But it is likely to be used by TWiki applications, such as <img src="%ICONURLPATH{%URLPARAM{file}%}%" />, where file contains the URL of a PDF attachment.

-- PTh

Oh, so that's the way it was intended to work? It was totally unclear from the documentation.

SVN 8245


Summary ICONURL, ICONURLPATH not consistent with ICON
ReportedBy PeterThoeny

SVN Range Tue, 10 Jan 2006 build 8208
AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins 8245
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2006-01-12 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback