Hello,
I need to change template of document on frontend. I need to do it by providing a link to a different version of the same document (for print purposes - css is not a option in this case). Please advice me how I can achieve it?
Lucas
-
☆ A M B ☆
- 24,524 Posts
You will need a plugin that will read the GET and set the resource's template. The resource will not be able to be cached, because the parser will fetch the page from cache without checking to see what the template is. I'm not sure which event would be best for this; possibly OnLoadWebDocument. This is what the Evo template switcher plugin uses.
Thank You for a quick reply.
Is there any plugin that I can use for Revo?
-
☆ A M B ☆
- 2,475 Posts
I don't know of one off the top of my head, but it should be fairly simple to make one.
hmm... unfortunately I'm not PHP programmer.
-
☆ A M B ☆
- 2,475 Posts
If you have a budget, you could find one...