In my project i have two modes called zakeljik & consument. For each mode there are different UI. I have set one session variable for this mode programmatically. I have two template for each mode. Now for one node i want to apply alternate template depending on mode. Can anyone tell me any solution for this?
I'm not sure if I completely understand the motive, but you can set templates as follows: If you have a page at page.aspx and a template called "template", you can apply the template via the url
You can achieve what you want with alternative templates, but I think it'd be worthwhile investigating an alternative master page approach. You would programatically change the master page (overall look and feel) without changing the actual template.
Hi , thanks for the reply. in my queries for the mode i have one link. for first click i want to apply one template and for another click i want to apply different template for the sam enode. where exactly i will use this "page.aspx?altTemplate=template-newtemplate"
How to set alternate template for the node
Hi,
In my project i have two modes called zakeljik & consument. For each mode there are different UI. I have set one session variable for this mode programmatically. I have two template for each mode. Now for one node i want to apply alternate template depending on mode. Can anyone tell me any solution for this?
Thanks in advance
Thanks,
Suvarna
I'm not sure if I completely understand the motive, but you can set templates as follows: If you have a page at page.aspx and a template called "template", you can apply the template via the url
e.g.
and
Hope this starts you in the right direction
You can achieve what you want with alternative templates, but I think it'd be worthwhile investigating an alternative master page approach. You would programatically change the master page (overall look and feel) without changing the actual template.
http://our.umbraco.org/forum/developers/api-questions/3687-dynamic-master-page
Hi , thanks for the reply. in my queries for the mode i have one link. for first click i want to apply one template and for another click i want to apply different template for the sam enode. where exactly i will use this "page.aspx?altTemplate=template - new template"
or how can i do this programmatically?
Thanks,
Suvarna
is working on a reply...