Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

How to set up the Tags in the editor to select different controllers to render?

$
0
0

Hello everyone,

I have a page type and I would like the instances of it to have different views/rendered differently.

As far as I understand I can do it by creating a several controllers for the page type and using TemplateDescriptor with specific TAG.

I know that I can select specific controller while making a call from a view to a partial view, but i need to set the tag somewhere on the page instance.

My question is, how can I specify at the time of page type instance creation which controller it should use for the rendering?

One way, I guess, it to create DisplayOptionsInitializationModule. But in this way all the page type instances will have those options. 

Thank you for any hints and suggestions!

HF


Viewing all articles
Browse latest Browse all 9076

Trending Articles