Area: Contents Control: admin, Action: Create Can't get id value in MVC filter OnActionExecuted

Topics: Customizing Orchard
Dec 16, 2014 at 12:20 PM

I cant get the id value in mvc filter when content create (OnActionExecuted) in version 1.7. But the id value become the content type name in 1.8. How to get the content item id when item created ?
Dec 16, 2014 at 1:00 PM
You could implement a ContentHandler to handle the Created, Saved or Published event. Why are you trying to get the content ID from an action filter?
Dec 17, 2014 at 12:14 AM
Hi sfmskywalker

Thanks, My idea is to create publish button alternate. Make publish like save button, but add a flag to keep "sendApprove" true.
I want published after a approval workflow. So I trigger the workflow in MVC filter. In 1.7 the id value is OK, but the 1.8 is content type name
when create. I have move the scenario into a content part's driver. when save to check the flag to trigger workflow.

Thanks! Best Regards!
Marked as answer by ezrachen on 12/16/2014 at 5:14 PM