Hey all, So we're trying to figure out the best way to have controller logic behind common areas of a site, without doing it in a razor view. Here's the user story:
As a user, I want to see a list of the featured 'cases' on our site at the top of every page. * Cases are populated based on a list of content items configured as 'featured' It doesn't seem to make sense to do this as a widget, because it would just be an empty content part with no fields, but that's the only place we can think to be able to put controller logic in there to drive the shape. I saw that on the ThemeMachine a User shape is being added to a zone manually, and there is logic in the User shape to display the user's name or the option to log in. Is there a way to add a shape to a zone with logic behind it without making it a widget? We have dozens of more complicated examples than this. This is just the simplest one I could think of. Most of our pages are composited of a lot of different shapes that all need separate logic behind them. If I recall, this was always one of my sticking points with MVC as well, as far as how to render out composited views without tightly coupling controllers. --- You are currently subscribed to orchard-discuss as: [email protected]. To unsubscribe send a blank email to [email protected].
