Tags:
create new tag
view all tags

Question

I have a Search function that presents a table from a form. It includes this in the format section:

format="| [[$topic][Link]] |

So, of course, it shows the word "Link" that links to the topic. Instead of a word I want an icon. I have tried constructs like:

format="| [[$topic][%ICON{help}%]] |

to get the help icon instead of the text word "link". It does not work. What is the proper way to do it?

Thanks.

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser: Fox
Categories: Search

-- JohnGee - 06 Jun 2008

Answer

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.

%ICON{help}% expands to a full image tag that contains double quotes. This basically terminates your format="..." prematurely.

Fix: Use just the icon URL (attention: needs a leading space), such as
format="| [[$topic][ %ICONURL{help}% ]] |...|"

Example: home.gif Support home.

-- PeterThoeny - 06 Jun 2008

Thank you so much.

-- JohnGee - 07 Jun 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-06-07 - JohnGee
 
  • 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.