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
Comment #1
bcobin CreditAttribution: bcobin commentedLooking good with latest dev of Entity API and current release of Custom Formatters... yay! Thanks! Setting to reviewed and tested...
Comment #2
bcobin CreditAttribution: bcobin commentedSetting this back to "needs work" - broken again with core 7.20, Token 1.5 and Entity dev... dang it...
Comment #3
jromine CreditAttribution: jromine commentedTry the patch to entity module in #1621084: Support list<struct> type tokens. With that I was able to use tokens like
Comment #4
roborracle CreditAttribution: roborracle commentedtried 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.
Comment #5
firfin CreditAttribution: firfin commentedNot 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
Comment #6
Deciphered CreditAttribution: Deciphered commentedSee #1511830: Fix Token engine