-
- 221 Posts
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
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.
-
- 221 Posts
Thank You for a quick reply.
Is there any plugin that I can use for Revo?
I don't know of one off the top of my head, but it should be fairly simple to make one.
-
- 221 Posts
hmm... unfortunately I'm not PHP programmer.
If you have a budget, you could find one...