urlparam and pretty urls
Posted: Mon Mar 23, 2009 10:38 pm
This seems to be a basic stuff, but I cant't find the answer. I need to modify the content of a specific page if it is entered from another specific page. Seems that you accomplish that by adding urlparam to the {cms_selflink} on the originating page and check for the existence of that parameter on the destination page with {if $smarty.get.myparamhere}. Well, it doesn't work for me. My selflink tag looks like the one below:
{cms_selflink page="page-alias" text="Back" urlparam="&myparam=1"}
The url used by the browser is:
http://www.mywebsite.com/index.php/page-alias&myparam=1
and the browser shows error 404.
I should have mentioned that pretty urls are turned on for this site, but I never found the indication, that pretty urls don't like urlparam.
I disabled the pretty urls to move on with this, but, if posible, I would like to have them on and parse the parameters between pages using GET method. Is that possible? If so, how?
{cms_selflink page="page-alias" text="Back" urlparam="&myparam=1"}
The url used by the browser is:
http://www.mywebsite.com/index.php/page-alias&myparam=1
and the browser shows error 404.
I should have mentioned that pretty urls are turned on for this site, but I never found the indication, that pretty urls don't like urlparam.
I disabled the pretty urls to move on with this, but, if posible, I would like to have them on and parse the parameters between pages using GET method. Is that possible? If so, how?