Unsuccessful overriding template

Topics: Administration, Core, Customizing Orchard, Troubleshooting
May 14, 2013 at 12:13 AM
Today I tried to add a link next to the "publish now" button that comes when you save a new content item. I found the cshtml file that is doing this, copied it into my theme with the appropriate file structure. However, it is not overriding it.

Original file: myorchardproject\Core\Contents\Views\Content.Edit.cshtml
My file: myorchardproject\Themes\mytheme\Views\Content.Edit.cshtml

I tried it with a Contents folder as well to see if that was necessary. I also tried copying in the entire Views folder with all its templates, but still no avail.

Any ideas?
Coordinator
May 14, 2013 at 12:19 AM
Might be a bug, which would be weird.

Another suggestion would be to do it the Orchard way: Create a Driver on ContentPart, return a shape, add it in the correct zone using Placement.info (Actions I think).

This is how it is done in the Workflows module to inject custom actions like Accept, Reject with the UserTask activity.