Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Advanced Workflow Email Woes


Go to End


8 Posts   1561 Views

Avatar
Andrew Houle

Community Member, 140 Posts

4 December 2015 at 7:55am

I have a simple working workflow. The email that gets sent out to notify the admins has a template that uses the link variables (i.e. {$Context.AbsoluteEditLink} and {$Context.AbsoluteLink}). These variable do not show up in the email that gets sent. Other variables do work including other Context variables like {$Context.Title}. I have no idea why that's failing... Any ideas/suggestions?

Thanks in advance!

Avatar
helenclarko

Community Member, 166 Posts

4 December 2015 at 8:23am

Hi Andrew,

Can you share the template with us?
Send it to pastebin or sspaste.

-helenclarko

Avatar
Andrew Houle

Community Member, 140 Posts

4 December 2015 at 8:28am

Sure, the template looks like this - http://www.sspaste.com/paste/show/566097ab65dfb

Avatar
Andrew Houle

Community Member, 140 Posts

4 December 2015 at 8:33am

The email ends up looking like this - https://cloudup.com/csHRI6Y369W

Avatar
helenclarko

Community Member, 166 Posts

4 December 2015 at 9:01am

Hi Andrew,

Hmmm, this is a hard one. It looks like AbsoluteLink either doesnt exist on $Context or once it hits the email template it doesn't exist on $Context.

Have you tried something like either $Top.Context.AbsoluteLink or $Up.Context.AbsoluteLink?
Maybe even $Top.AbsoluteLink or $Up.AbsoluteLink?

I'll continue to have a look into it though.

-helenclarko

Avatar
Andrew Houle

Community Member, 140 Posts

4 December 2015 at 9:23am

Hi Helen,

Thanks for taking a look! Unfortunately neither of those updates work. $Top leaves the email still blank and $Up errors out.

Any idea how I find out what fields are available on $Context?

Thanks!
Andy

Avatar
helenclarko

Community Member, 166 Posts

4 December 2015 at 9:46am

Hi Andrew,

Not sure if this issue has anything to do with it.
https://github.com/silverstripe-australia/advancedworkflow/issues/32

-helenclarko

Avatar
Andrew Houle

Community Member, 140 Posts

4 December 2015 at 10:27am

That issue was back from 2012, and it doesn't look like it got resolved. It's a bit bootleg, but I got things working with this - http://www.sspaste.com/paste/show/5660b353b4bc7