This project is read-only.

Field Wrappers & Date formatting in Rule Action

Topics: Administration, Customizing Orchard, General
Jan 24, 2013 at 2:31 PM
Edited Jan 24, 2013 at 2:33 PM

I have two questions for issues I'm running into and am not sure how to fix. One is that I have a field in a custom form I'm trying to attach a wrapper to using the placement file. The wrapper's content shows up fine but the field doesn't get rendered, I'm not sure what I'm missing and have posted my issue on stackoverflow as well.

Secondly, when this form is submitted I have a rule that fires off an email containing the information contained within the form, but my date field being output to the email when it arrives look like this: 2013-01-23T07:00:00.0000000Z
How would I go about formatting this so that it's not so verbose? 

Jan 26, 2013 at 9:14 PM

Did you solve the date format?

Jan 31, 2013 at 9:03 AM
Date tokens have a format option.
Feb 1, 2013 at 8:44 PM
Thanks, that's what I needed. I couldn't find out how to do it but once you called them Tokens I searched for that and came across some examples.

In case anyone is interesting he're an example of what I found.