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

Comments

agerson’s picture

Category: bug » feature
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.

dww’s picture

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

agerson’s picture

Category: feature » bug
Priority: Minor » Normal

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

bomarmonk’s picture

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.

bomarmonk’s picture

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.

bomarmonk’s picture

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

bomarmonk’s picture

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

roderik’s picture

Please see #423502: Add plain format without any HTML for a patch which adds plaintext formatters.

I guess this is not enough yet, since the [field_date-view] token still gets the 'default' format, not the 'default_plain' format.

So someone who knows token stuff, please see if you can use this, to work with.

marcoscano’s picture

sorry if I'm posting on the wrong issue, it's the only one I found with a similar problem.

I'm using core 7.8, date 7.x-2.x-dev, rules 7.x-2.0-rc2.

I have a rule configured to periodicaly send an email reminder of an event to the users who have flagged the event, and the email (not html formatted) contains the date field information (using the date token for that), so the result is the same indicated above " <span class=".....>

Once I can't use the workaroud indicated (no theming or html formatting in the email body), is there another way of solving this?

thanks

mstrelan’s picture

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.