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.

On a hunch (from noticing that most of the built-in macros are
multi-line) I tried a new custom field of
type=textarea,format=wiki,rows=1,cols=20.  This new field worked as I
wanted, with both trac links and Macros being expanded, but there are
side effects that make using a textarea to mimc a text type.  The
textarea spans both field columns, and it includes the formatting
header.  The textarea's class is the same as the main description
textarea, so I can't do anything clever with CSS.

So here are my specific questions:
 - is it a known issue that type=text custom fields don't expand Wiki Macros?
 - 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?

Thanks
--John

-- 
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.

Reply via email to