chnage page template on the fly (via url get for example) (1 post)

  1. ragulka
    Posted 6 years ago #

    Hi, I'd like to know if it's possible to change the page template on the fly, ie when I have 2 page templates: "With Sidebar" and "Without Sidebar" and I have a page called "Info" which is set to use the page template "With Sidebar", and it's got a permalink like this: http://site.com/info/. Now, what I want to do is this: I create a link like this http://site.com/info/?tpl=Without%20Sidebar or somethiing similar, that would force the page to use the "Without Sidebar" Template instead - and all this without changing any values in the database. Is this currently possible?

Topic Closed

This topic has been closed to new replies.

About this Topic