Hi folks
In a nutshell: I want to show labels for my search results.
(Question at the bottom)
Standard way is to activate the 'Item' view by either
- changing the List and Search Item view template from Seb List to Seb One
- changing Seb List's display from 'Standard' to 'Advanced'
However, I would like to show the labels in my 'Item' view.
I have achieved this by adding conditionals to my custom List template.
I also added conditionals so that if the field is a 'field_x' then it will only show the label once, rather than for each 'field_x' item, and only if 'field_x' has data to show.
if (($item->getLabel( $fieldname ) != 'clear') && (($item->getType( $fieldname ) != 'field_x' ) )) {
$content = '<label class="label">'.$item->getLabel( $fieldname ).'</label>'.$content;
}
if (($item->getLabel( $fieldname ) != 'clear') && (($item->getType( $fieldname ) == 'field_x' && $item->getTypo( $fieldname ) != '') )) {
$content = '<label class="label">'.$item->getLabel( $fieldname ).'</label>'.$content;
}
QUESTION: Anybody out there have a better / preferred way to show labels in the 'Item' view, or is this THE way
Regards
Bucklash