Alternate content item

Topics: General
Aug 19, 2015 at 9:44 AM
Edited Aug 19, 2015 at 9:45 AM
Is there a way to deliver an alternate content item for a given url?

We want to develop a new version of a page, but have it feature switchable within the cms, either through a checkbox or enabling/disabling a module feature, so that we can switch between the old version of the page and the new version per tenant.

This alternate version of the page will have an entirely different content type definition.

Can anyone think of a good way to do this?
Developer
Aug 21, 2015 at 8:13 PM
One simple solution would be by implementing one controllers and route provider for each feature. Both route providers would use the same URL, but only one of them would be active at a time thanks to the OrchardFeatureAttribute. One controller would serve content item A, while the other controller would serve content item B.

Another solution that is even simpler and doesn't involve features and coding at all is simply having the two pages and publish either the one or the other and update their alias as needed. IF you don;t like that manual approach, you could create an actual feature with some A/B testing characteristics, but that would probably be a bigger effort.