Closed (fixed)
Project:
Context links
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Aug 2005 at 09:01 UTC
Updated:
1 Mar 2007 at 17:04 UTC
It'd be nice to have the ability to set a path to prepend to all the occurencies of a class.
I'll explain myself better with an example. Let's assume link of the class "glossary" link always to the same page and differ only by an anchor, so /glossary#chair and /glossary#sofa are valid links. I am proposing to add a prepath field to the class table so when you use the filter you only need to specify "#chair" or "#sofa" having the filter prepend automagically the "/glossary" part.
Comments
Comment #1
jhriggs commentedI just committed version 5.x-1.0 to CVS. It includes similar functionality to this. Classes can now have a URL template that, if provided, will be used as the basis for the link that is created. For example, a template of
http://google.com/search?q=and a context link of[?google:foo foo]will result in a link tohttp://google.com/search?q=foo. An optional placeholder can be used if the variable part of the link is not at the end, for examplehttp://google.com/search?q={}&hl=en&lr=lang_sr. ({}is the placeholder.)Comment #2
(not verified) commented