Imagine the following email was sent out from Sitecore with a list of links:
Hello Amy,Sending out those links is pretty straightforward, while having Sitecore function according to the scenario requires some adjustments.
The item “About Us” was submitted for approval by user “mark” on Aug 15th 2008. Please login to CMS and review the content using one of the following modes:
WebEdit: http://sandbox531071114/sitecore/login/default.aspx?mode=webedit&sc_itemid=%7b3D1814ED-55DD-4518-BD2C-809393F94D2D%7d
Preview: http://sandbox531071114/sitecore/login/default.aspx?mode=preview&sc_itemid=%7b3D1814ED-55DD-4518-BD2C-809393F94D2D%7d
Workbox: http://sandbox531071114/sitecore/login/default.aspx?mode=workbox
Best Regards, Sitecore CMS
The first thing that you should do is add a processor to the “login” pipeline that will perform the dynamic switch between the modes by adjusting the LoginArgs’ StartUrl judging by the “mode” query string you pass in the initial URL:
1: <login argsType="Sitecore.Pipelines.Login.LoginArgs">
2: <processor mode="on" type="Sitecore.Pipelines.Login.LoginCookie, Sitecore.Kernel" />
3: <processor mode="on" type="Sitecore.Pipelines.Login.Login, Sitecore.Kernel" />
4: <processor mode="on" type="Sitecore.Pipelines.Login.Settings, Sitecore.Kernel" />
5: <processor mode="on" type="Sitecore.Pipelines.Login.Ticket, Sitecore.Kernel" />
6: <processor mode="on" type="Sitecore.Pipelines.Login.CheckStartPage, Sitecore.Kernel" />
7: <processor mode="on" type="SCUSAINC.Web.Pipelines.Login.ModeRedirector, SCUSAINC.Web" />
8: </login>
9:
- For the Workbox mode - "/sitecore/shell/applications/workbox/workbox.aspx"
- For the WebEdit mode - "/sitecore/shell/applications/webedit.aspx"
- For the Preview mode - "/sitecore/shell/applications/preview.aspx"
Enjoy!
4 comments:
The package link seems to be broken.
Any chance you could put it up again?
Link updated. Please note that this may not work for Sitecore 6.x release.
What is the URL for verion 6.4.1
I have a similar requirement and I need to send a notification mail to content approver and provide Workbox url in the email.
It's important to note that this solution was created with 5.3.x in mind. If you are on 6.2 and higher, I would frankly use the Client Feeds feature which is a way to get RSS notifications from workflow with links to login. This is a much better way of doing this.
-alex
Post a Comment