getting custom fields to display in the buglist css classes

Bill Barry after.fallout at gmail.com
Tue Feb 6 16:43:27 UTC 2007


David Miller wrote:
> David Miller wrote on 2/6/07 11:21 AM:
>   
>> You've already got 'field' there in the loop, you don't need to
>> dereference Bug to get at it.  There
>>     
>
> oops, I sent that prematurely...  what I was trying to say was are you
> trying to get at the value of the field rather than the name of it?
> Looks like it's the same AUTOLOAD method to get at it so that ought to
> work...  there may be some limit to the number of things you can stuff
> in a class field and have the browser notice it, too.  Have you looked
> at the generated source after running that?  I seem to recall that some
> browsers only look at the first 8 things in a class attribute.
I am trying to output "bz_" then the field name, then the field value, 
so for a custom type field with the value of "Feature" it would output:
bz_cf_type_Feature

that is what this line is supposed to do:
bz_[% field.name FILTER css_class_quote %]_[% bug.${field.name} FILTER css_class_quote -%]

However, what it is doing is outputting:
bz_cf_type_

When I look at the generated source I see the following:
class="bz_bugitem bz_normal bz_P3 bz_NEW bz_cf_type_ bz_row_odd"




More information about the developers mailing list