Developer forum

Forum » Templates » Change master template for AJAX

Change master template for AJAX


Reply
hi DW's
 
I am using some Ajax on my solution and I have read that theres an URL parametre for changing the master template to something else, so all the design is gone. (for faster process).
 
I have found the URL on the net, but I cannot get it to work, how should the string look like?:
 
?MasterTemplate=[template fil]

I am using "Design and Layout", dont know if this make a difference?

My alternative master template is located in the root of the design and layouts folder (the shop design root).

Replies

 
Reply
Hello,

The parameter string should look like this:
MasterTemplate=templatename
For example:
MasterTemplate=myTemplate.html

The entire link could look like this:
http://dynamicweb.dk/Default.aspx?ID=1&MasterTemplate=myTemplate.html

And this file myTemplate.html must be located in \Files\Templates\Master folder.


Best regards,
Sergey Ivanov
 
Reply

I think you need to use the LayoutTemplate parameter...

?LayoutTemplate=designs/mydesign/ajax.htm

BR
Morten
 
Reply
thanks guys, that last one worked for me, but great to have them both :-)

 

You must be logged in to post in the forum