Tags:
create new tag
view all tags

Question

I'd like to extremely shorten a very long anchor tag I use repeatedly:

<a href="http://www.elementool.com/Services/Common/quickview.aspx?accntname=companyname&issueno=6972" target="_blank">6972</a>

I figure I could do this in a Twiki custom variable but I'm not sure how to customize it so that it accepts a parameter. For instance, I'd like to use this new variable like so:

%ETOOL{'6972'} which would expand to the above anchor tag.

How and where do I solve this little nugget?

Thanks,

BrianBeaudet

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser: Latest IE, Latest FireFox
Categories: Missing functionality

-- BrianBeaudet - 31 Aug 2006

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.

Write a InterwikiPlugin rule to link ETOOL:6972 automatically.

-- PeterThoeny - 31 Aug 2006

That's it! I never would have thought to even check out InterwikiPlugin. I better start reading up here. My peers think I'm the TWiki expert and I probably know about 1% of what's available. Now I'm gaining on 2% thanks to you.

-- BrianBeaudet - 31 Aug 2006

The mission of the WikiChampion smile

-- PeterThoeny - 31 Aug 2006

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-08-31 - 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.