Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Views Data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2010 at 18:44 UTC
Updated:
17 Mar 2012 at 22:16 UTC
All Views labels currently get a colon at the end. This may be an issue if the label has to go in a question form. How can I get rid of the colon?
Thanks!
Comments
Comment #1
dawehner#828776: Inconsistent exposed form element labels (some with ':', others without)
Comment #2
zualas commentedFinally was able to find that to be a simple theming question:
Copy the file views-view-fields.tpl.php from /modules/views/theme/ into your theme folder and replace the content with:
Just had to remove the colon from label output.
Comment #3
iko commentedYou don't need to alter template files, unless you want this behaviour to be default. You may check the "rewrite the output of this field" box and set
Label [token]as output. Copying the template files in the theme folder will prevent your site from being up-to-date if the original file is altered by module's maintainers.Comment #4
charles belovFor example:
Under Rewrite the output of this field, enter into the Text field:
to [field_time_value2]Also, set Label to none.