Add a plain text token for the formatted date of a date field

agerson - October 8, 2009 - 00:10
Project:Date
Version:6.x-2.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Confirmation email:
[author-name], You have been confirmed for our meeting [title] on [field_date-view]

Resulted in:
admin, You have been confirmed for our meeting Website/Weekly Meeting on
October 9, 2009 - 9:00am

#1

agerson - October 8, 2009 - 00:15
Category:bug report» feature request
Priority:normal» minor

ahhh, perhaps this is expected behavior "The formatted date." I would love a token for the exact same value but without the html.

#2

dww - October 8, 2009 - 00:22
Title:html visible in email body in mail client» Add a plain text token for the formatted date of a date field
Project:Signup» Date
Version:6.x-1.x-dev» 6.x-2.x-dev
Component:Email» User interface

A) When you're posting HTML into an issue, don't forget to wrap it with <code> tags so that the HTML is visible. ;) Luckily, I'm a site admin here, so I could visit the edit tab for your issue and view the raw source, but for future reference, here's what was written:

admin, You have been confirmed for our meeting Website/Weekly Meeting on 
<span class="date-display-single">October 9, 2009 - 9:00am</span>

B) Signup module is just invoking token module to replace the tokens. If you want new tokens, that's a feature request against the module providing the tokens, not the one where they're being used. In your case, sounds like you're asking for a new token to be provided for date fields. Moving this to the right queue.

Cheers,
-Derek

#3

agerson - October 8, 2009 - 00:33
Category:feature request» bug report
Priority:minor» normal

So this is the only token date tag with HTML. Is this intentional?

#4

bomarmonk - October 22, 2009 - 00:12

How can you make a raw date token???? This isn't good for dates that are inserted into titles using rules or auto-node-title.

#5

bomarmonk - October 24, 2009 - 06:37

I used to be able to delete the html elements from the date theme, but now I can't even find where the html for the date token is stored so I can delete it. What file makes this html show up in a node title when using tokens? Beats me! Any help would be appreciated, hack or otherwise.

#6

bomarmonk - October 24, 2009 - 07:41

How about a patch along these lines? It looks like the folks at this other module have this figured out, but I'm not sure where similar changes would be made to the date module: http://drupal.org/node/538244

#7

bomarmonk - October 30, 2009 - 19:28

A workaround for excluding HTML in titles that use dates with the rules module: http://drupal.org/node/619234

 
 

Drupal is a registered trademark of Dries Buytaert.