I've been investigating an issue where the standard umbraco workflow (using users, notifications and send to publish) has been unable to re-write localLinks to valid external URLs when sending the modified content to publishers. After investigating a bit it looks as though the resolution to this issue in a macroScript or other location would be to apply Umbraco.Web.Template.TemplateUtilities.ParseInternalLinks to the localLink.
To this end, I've tried both re-writing this in a beforeSendToPublish/Publishing event and updating the body parameter which is being passed to the e-mail template in en.xml, but both have been unsuccessful.
When using the publishing event I was able to modify the body content in the e-mail and send that to the publisher, but only if I saved the document back to the database and updated the link permanently. I also attempted to cancel the current SendToPublish notification, duplicate the document and start a new notification with the duplicate before removing the duplicate in an AfterPublish event. But could not find a way to manually begin the notification workflow.
As for trying to update the mail template; I've been able to update other fields in the template but could not find where en.xml is pulling arguments from. It appears I need to access wherever %6% is being generated and run ParseInternalLinks on it, but haven't been able to find where this is being generated. The %6% argument contains the change log for all properties since the last publish.
Would anyone be able to help with identifying a resolution for this using any of the steps mentioned above (or possibly something else I've missed entirely). Alternately is this a known issue which I may have missed entirely when searching?
Local link re-writing on Send To Publish
Hi,
I've been investigating an issue where the standard umbraco workflow (using users, notifications and send to publish) has been unable to re-write localLinks to valid external URLs when sending the modified content to publishers. After investigating a bit it looks as though the resolution to this issue in a macroScript or other location would be to apply Umbraco.Web.Template.TemplateUtilities.ParseInternalLinks to the localLink.
To this end, I've tried both re-writing this in a beforeSendToPublish/Publishing event and updating the body parameter which is being passed to the e-mail template in en.xml, but both have been unsuccessful.
When using the publishing event I was able to modify the body content in the e-mail and send that to the publisher, but only if I saved the document back to the database and updated the link permanently. I also attempted to cancel the current SendToPublish notification, duplicate the document and start a new notification with the duplicate before removing the duplicate in an AfterPublish event. But could not find a way to manually begin the notification workflow.
As for trying to update the mail template; I've been able to update other fields in the template but could not find where en.xml is pulling arguments from. It appears I need to access wherever %6% is being generated and run ParseInternalLinks on it, but haven't been able to find where this is being generated. The %6% argument contains the change log for all properties since the last publish.
Would anyone be able to help with identifying a resolution for this using any of the steps mentioned above (or possibly something else I've missed entirely). Alternately is this a known issue which I may have missed entirely when searching?
Thanks,
Kris
is working on a reply...