Closed (fixed)
Project:
Display Suite
Version:
7.x-1.2
Component:
Field UI
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2011 at 16:27 UTC
Updated:
18 Feb 2013 at 17:56 UTC
Jump to comment: Most recent
Comments
Comment #1
swentel commentedThe easiest way is this:
Override the theme_field function in your template.php if you like and remove that colon in there. See http://api.drupal.org/api/drupal/modules--field--field.module/function/t....
Comment #2
elgandoz commentedI used this in my template.php
Where i tried to put some ++ after
: , But this is not working. My label has to be a word without colon before the value.It would be nice have this option directly in Display Suite UI.
Any helps?
Comment #3
elgandoz commentedPS: using that also appears...
Notice: Undefined index: scale in number_field_formatter_settings_summary() (linea 264 di [...]\drupal\modules\field\modules\number\number.module).
Notice: Undefined index: decimal_separator in number_field_formatter_settings_summary() (linea 264 di [...]\drupal\modules\field\modules\number\number.module).
Notice: Undefined index: thousand_separator in number_field_formatter_settings_summary() (linea 264 di [...]\drupal\modules\field\modules\number\number.module).
Notice: Undefined index: prefix_suffix in number_field_formatter_settings_summary() (linea 265 di [...]\drupal\modules\field\modules\number\number.module).
Comment #4
Tony Finlay commentedWhat you have to do is replace (1^) with the name of your theme, then delete the colon above pointed out by the comments.
Finally just paste this code into a template.php file and save it in your theme folder, then clear your cache (under: configuration > performance) click on the appearance tab, refresh the page and save the configuration, when you go back the colons should be removed.
Comment #5
swentel commentedPost in #4 is correct. #3 are errors not related to DS, and I'm not going to make this an option for now. There are easy overrides possible for this problem.
Comment #6
swentel commentedNote, in the next release, there will be an option to remove the colon completely for the reset function or there is an option with the 'expert' field template to remove it as well.
Comment #8
zhuber commentedYou can use this if you want as well.
Paste this block into your version of 'page.tpl.php' in your template folder.
Comment #9
Jessica A commented#4 works, thanks!!
Comment #10
jacquelynfisher commented#8 worked for me. #4 did not.
Comment #11
liza commentedthat jquery is amazing. thanks!