[rt-users] maintainably tagging custom fields for CSS

Jesse Vincent jesse at bestpractical.com
Mon Aug 13 11:45:31 EDT 2007


On Aug 13, 2007, at 10:05 AM, Nicholas Clark wrote:

> I see that in the create ticket page, the HTML for custom fields is  
> tagged
> with IDs for CSS like this:
>
>     <tr id="CF-5-EditRow">
>
>
> This is (I believe) enough to allow CSS to be used to tweak the  
> visual layout
> of the ticket creation page without having to touch the RT code  
> itself.
>
> However, that '5' scares me. That's the ID of the custom field  
> within the RT
> instance, isn't it? That's not something I control. Is there a way  
> to get RT
> to generate HTML to identify fields to CSS by name? So that I don't  
> have to
> rely on the development systems being perfect clones, and never  
> going out of
> sync.

I'd love a patch that adds more semantic markup for custom fields.  
(giving the cf names (encoded to deal with things like spaces and  
chinese ;) around the widgets and labels.)

Best,
Jesse

> If not, is there a clean way to add this?
>
> Nicholas Clark
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070813/7041df45/attachment.sig>


More information about the rt-users mailing list