This project is read-only.

Themed Controller and Content Integration

Topics: Customizing Orchard, Writing modules
Jul 8, 2011 at 9:48 AM

I have a custom module with a themed controller.

This does render the view out in the content zone and does replace the previous content in the zone aka the site i created in orchatd.

Is there another solution apart from creating a widget?


Jul 8, 2011 at 7:07 PM

Another solution to do what?

Jul 8, 2011 at 7:43 PM
Edited Jul 8, 2011 at 7:46 PM
To still keep other shapes on the content zone when you use a themed controller


Jul 8, 2011 at 8:03 PM

I'm sorry, I still don't understand. What other shapes?

Jul 8, 2011 at 8:08 PM

If i create a site in content management named /contact and i have a contact controller and a contact route (also /contact/
where i display a contact form with a controller with the themed attribute, the whole content of the createt site gets overriden
but i still want to keep the site content above the contact form

Jul 8, 2011 at 8:11 PM

What are you calling the site content?

Jul 8, 2011 at 8:12 PM

Just a new page..

Jul 8, 2011 at 8:17 PM

If it's a page, it's at a different URL, right? How could your custom controller prevent this from being accessed? Still not understanding.

Jul 8, 2011 at 8:19 PM

The page has the same url  as the controller route...

Jul 8, 2011 at 8:20 PM

Well, that can't work obviously. If you want your custom code to be added to existing contents, you should not take over the route. Instead, create a content part of a widget.