I've created a few posts about this some time back and I believe it's more of a Token issue than an issue with Custom Formatters. But I'm hoping you might be able to provide some guidance, not just to me, but to others who are having the same problem.

After performing site upgrades, tokens for custom display of CCK dates are no longer available. In my case, I have a "published date" displayed in a mini-calendar format, using the HTML below:

<div class="calendar-icon"><div class="month">[node:field-published-date:custom:M]</div>
<div class="day">[node:field-published-date:custom:j]</div>
<div class="year">[node:field-published-date:custom:Y]</div></div>

This no longer works.

I've tried installing http://drupal.org/project/token_formatters but it doesn't seem to do anything - in any event, I'm wondering if you might be able to provide some guidance as to how the same thing might be accomplished using PHP (if possible) and/or if I should create another issue in the Tokens issue queue. And if I create an issue over there, perhaps you could give me some guidance as to best describe what's happening - or not happening, as the case may be.

Thank you for the module and for your assistance - Happy Merry!

Comments

bcobin’s picture

Status: Active » Reviewed & tested by the community

Looking good with latest dev of Entity API and current release of Custom Formatters... yay! Thanks! Setting to reviewed and tested...

bcobin’s picture

Status: Reviewed & tested by the community » Needs work

Setting this back to "needs work" - broken again with core 7.20, Token 1.5 and Entity dev... dang it...

jromine’s picture

Try the patch to entity module in #1621084: Support list<struct> type tokens. With that I was able to use tokens like

[node:field-date:0:value:custom:M]
roborracle’s picture

tried applying that patch to see if it would solve my problem, but unfortunately, it didn't. I'm trying to accomplish the same thing that @jromine mentions in #3 in views on an event content type.

firfin’s picture

Not sure, but maybe this is related? This is specific to multi-valued fields however #1440928: Entity tokens for multi-value fields produce a fatal error

Deciphered’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)