[Quickbook 1.4] template for link to issue ?
Hi, Still using Quickbook 1.4, I've not been able to create a template for linking to items in our issue database. Writing out the following works: \[[@https://host.domain/issues/view.php?id=121 #121]\] Text.. Giving: [#121] Text... I tried (several variations of) a macro like: [template issue[key] [@https://host.domain/issues/view.php?id=[key] #[key]] ] Using: * \[[issue 121]\] Text... However none had the desired effect. (I prefer to include the \[, \] inside the template.) Should I write the template differently, or do I have to upgrade to a newer version of Quickbook? Can someone give a hint? Thanks in advance. Martin Moene
On 6 December 2010 08:39, Martin Moene
I tried (several variations of) a macro like: [template issue[key] [@https://host.domain/issues/view.php?id=[key] #[key]] ]
Using: * \[[issue 121]\] Text...
There's no support for templates or macros inside urls. So the only way to implement this is to write a template that uses escaped boostbook. See the attached file for an example. You need to be careful when using the template as it will interpret the argument as quickbook, should be fine if you're just using numbers. By the way, you might notice that I implemented the template as a single line, this is because quickbook interprets a template body that starts with a newline as a block. Daniel
On 12/6/2010 1:12 PM, Daniel James wrote:
On 6 December 2010 08:39, Martin Moene
wrote: I tried (several variations of) a macro like: [template issue[key] [@https://host.domain/issues/view.php?id=[key] #[key]] ]
Using: * \[[issue 121]\] Text... There's no support for templates or macros inside urls. So the only way to implement this is to write a template that uses escaped boostbook. See the attached file for an example. You need to be careful when using the template as it will interpret the argument as quickbook, should be fine if you're just using numbers.
Hi Daniel, This is what I was looking for. One thing I tried was to split the [@url text] using quotes etc, much like your solution. However I didn't know that there's no support for templates or macros inside urls (Although now I know, I couldn't find it mentioned in the Quickbook documentation or on the Web though).
By the way, you might notice that I implemented the template as a single line, this is because quickbook interprets a template body that starts with a newline as a block.
(I made the template multi-line just to fit it on the line(s), entirely forgetting that I'm writing for a Phrase Level Element.) Thanks very much for your help. Cheers, Martin
participants (2)
-
Daniel James
-
Martin Moene