Closed (works as designed)
Project:
Entity API
Version:
7.x-1.0-beta10
Component:
Entity tokens
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2011 at 21:10 UTC
Updated:
25 Oct 2011 at 09:11 UTC
I have this set as my manual title for a panel page:
%node:field-maincourse %node:title
the field "main course" is defined as a decimal field with a scale of 3 (i.e. 3 digits to the right of decimal point)
but the title only shows 2 decimal points.
as a test i also add that field as std pane content so that you can see it really does have 3 (since pane content formats correctly).
Comments
Comment #1
merlinofchaos commentedToken.module provides field tokens which we just pass along.
Comment #2
dave reidToken uses the 'default token formatter' with fallback to 'default formatter' in the field type's hook_field_info(). If you want to change how a field token is output, enable the 'Token' view mode on your content type's 'Manage display' tab, and then select the formatter you want.
Comment #3
liquidcms commentedcool, except my available modes are:
Full content
Teaser
RSS
Search index
Search result
nothing about Tokens
Comment #4
dave reidYou'll need to make sure you're using the latest D7 beta release of token and clear your caches for it to show up.
Comment #5
liquidcms commentedi did have Sept 6 dev release. cleared cache and sure enough; i do now have a display mode for Tokens.
enabled, set it to 3 decimal places, save, cleared cache again just for the fun of it.
no impact on the panel page title.
so i am leaning towards this is bug in Panels. i will get around to tracking it down (hopefully in next week or 2); just wanted to report the bug for now.
Comment #6
dave reidActually, looking at your original post, are you using Entity tokens (which uses dashes in its field token names)? Try using %node:field_maincourse maybe (which is the Token module-provided token).
Comment #7
liquidcms commentedyup, that works. so i am moving this to the Entity module which seems to have the bug in it
Comment #8
fagoEntity tokens does not use display formatters but just outputs plain data - this is by design.