Views 6.x-3.0 has a check box on the field configuration page labeled:

Place a colon after the label
If the label is to be inline with the value, place a colon between them. Not valid for styles such as table where the label is not placed with the value.

Semantic views does not respect this option and the colon is displayed regardless of the setting.

Workaround is to rewrite output.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupal_was_my_past’s picture

This is also true for 7.x-1.x-dev version. semanticviews-view-fields.tpl.php shouldn't have the colon hardcoded in, but should respect the Views "Place a colon after the label" setting under "Create a label".

jiddisch’s picture

How can I remove the colon without jQuery?

Edited:
My solution was to copy semanticviews-view-fields.tpl.php from the module folder to my theme folder, and removed the colon from line 41.

RogerRogers’s picture

#2 is a good temporary work-around.

Martijn de Wit’s picture

Issue summary: View changes

it also applies to version 7.x

my solution:
Make a copy of semanticviews-view-fields.tpl.php and replace a code line
replace:
<?php print $field->label; ?>:
with this:
<?php print $field->label; ?><?php if ($field->handler->options['element_label_colon']): ?>:<?php endif; ?>

Martijn de Wit’s picture

Version: 6.x-1.0 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
780 bytes

patch for 7.X branch

Martijn de Wit’s picture

Title: Semantic views does not respect the "Place a colon after the label" option of views 6.x-3.0 » Semantic views does not respect the "Place a colon after the label" option of views 6.x-3.0 & 7.X
immoreel’s picture

Hey Hi,

I made a new patch, the one from Martijn de Wit wasn't relative to the module folder

Martijn de Wit’s picture

@immoreel thnx! Sorry didn't notice it :)

  • Scyther committed cdadd24 on 7.x-1.x
    Issue #1438724 by Martijn de Wit, immoreel, brianmercer: Semantic views...
Scyther’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Fixed for 7.x-1.x version. Still need fix for 6.x-1.x

Scyther’s picture

Status: Needs review » Fixed

Fixed in D6 version also

  • Scyther committed df6727b on 6.x-1.x
    Issue #1438724 by Martijn de Wit, immoreel: Semantic views does not...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.