Tags:
create new tag
view all tags

Parameterized Links

Like the ParameterizedIncludes, URL parameters should be passed to links, without the need to write http://%SCRIPTURL%/view/%WEB%/TopicName?param=value.

For instance, this would be needful for Topic of interests and links like this. Everything you could do with includes, you should be able to do with links.

Then it could be useful to open a topics in edit mode directly by the same syntax enhancement.

-- StefanSteinegger - 09 Nov 2004

Syntax proposals

Feel free to contribute. I don't have any idea.

Discussion

This can be defined consistently with Anchor support, e.g. TopicName?param=value, [[TopicName?param=value]], [[TopicName?param=value][label]] corresponds to TopicName#AnchorName, [[TopicName#AnchorName]], [[TopicName#AnchorName][label]], respectively.

-- PeterThoeny - 09 Nov 2004

This is surely the simplest way to do it. But how does it look, if you want to pass "What's going on?" as parameter? Are you writing !MyTopic?param=What%27s+going+on%3F for that?

Maybe we should leave the current link syntax as simple as it is and provide a function like %LINK{TopicName param1="value" param2="value2" ...}%. Some TWiki default parameters could be useful like rev, action (for view, edit, diff ...), may be skin and so on.

To distinguish action from real parameters, the functions could also be named like %LINK{...}%, %EDITLINK{...}%, %DIFFLINK{...}% and whatever.

-- StefanSteinegger - 10 Nov 2004

It seems to be easily solved by a macro as suggested in ParameterizedVariables.

-- StefanSteinegger - 11 Nov 2004

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-01-03 - 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.