orchardcms - Orchard using tokens to retrieve property values from a part -


i have part defined below, , have content type has part. i'm using rules trigger email send when item of content type created.

i'm having difficulty accessing fields on part using tokens. i've done digging in tokens module , appears cannot directly access properties on part, fields on part.

does know how can access these properties in email body using tokens? i've tried {content.name}, {content.addresschangeformsubmission.name} , many other different tokens no success. can access things {content.id}, {content.contenttype} no problem though.

thanks

public class addresschangeformsubmissionpart : contentpart<addresschangeformsubmissionrecord> {     [required]     [display(name="name")]     public string name     {         { return record.name; }         set { record.name = value; }     }      [required, datatype(datatype.emailaddress), emailattribute]     public string email     {         { return record.email; }         set { record.email = value; }     } } 

a token needs explicitly exposed, , there none out of box body. @ existing tokens example on how build own.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -