On Mon, Sep 12, 2011 at 4:39 PM, John Jetmore <[email protected]> wrote: > Here's the quickest distillation of my problem (0.12): > > I want a custom ticket field that is automatically expanded to a link > (in this case, we have an external CRM system and I would like to be > able to link to individual cases from Trac). > > I have been pursuing this by writing a custom Macro that turns > [[CRM(1234)]] into a link to case 1234 in our CRM system. I have the > Macro written and it works fine in the wiki itself. > > However, when I try to use that Macro in the custom field (which is > type=text, format=wiki), it just shows as [[CRM(...)]]. I tried a > native Macro and it behaves the same way. I confirmed that a trac > link like ticket:3 does expand correctly in that field. > [...] > So here are my specific questions: > - is it a known issue that type=text custom fields don't expand Wiki Macros?
I suppose they shouldn't be displayed when rendering one liners since macros may be rendered in a block thus spanning beyond the line itself. > - short of going and editing the source, is there any knob I can turn > to get Wiki Macros in type=text custom fields? > - taking a step back, is there a solution to my desire to create a > link based on a case number that avoids Macros that would work better > here? > If the goal is just to generate a link to your CRM, then I suppose a Macro is not the right way to do it . It should be implemented as a TracLinks provider instead and pasted like this [mycrm:etc:etc:etc any text you want] ... nonetheless if you cannot change the plugin source code then I guess the only thing left is to live with it ... :-/ -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Appeartowork - Use Facebook while you appear to work - http://simelo-en.blogspot.com/2011/07/appeartowork-use-facebook-while-you.html Appeartowork - Enmascarando el uso de Facebook - http://simelo-es.blogspot.com/2011/07/appeartowork-enmascarando-el-uso-de.html -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
