Themed Controller and Content Integration

Topics: Customizing Orchard, Writing modules
Jul 8, 2011 at 8: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?

 

Coordinator
Jul 8, 2011 at 6:07 PM

Another solution to do what?

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

 

Coordinator
Jul 8, 2011 at 7:03 PM

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

Jul 8, 2011 at 7: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

Coordinator
Jul 8, 2011 at 7:11 PM

What are you calling the site content?

Jul 8, 2011 at 7:12 PM

Just a new page..

Coordinator
Jul 8, 2011 at 7: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 7:19 PM

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

Coordinator
Jul 8, 2011 at 7: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.