Template Switcher

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Sonya

Re: Template Switcher

Post by Sonya »

Phoenixsong wrote:

Code: Select all

Fatal error: Cannot redeclare curpageurl() (previously declared in /path/to/htdocs/site/lib/content.functions.php(975) : eval()'d code:4) in /path/to/htdocs/site/lib/content.functions.php(975) : eval()'d code on line 3
Yes, this UDT is tested on clean installation 1.9.2 and has no errors. The error you have posted derives from you additional UDT.
Sonya

Re: Template Switcher

Post by Sonya »

Phoenixsong wrote:That looks like it's just because of the UDT I was using to set the URL of the current page in a variable
Why don't you use a simple form to send $_REQUEST and reloading active page? See an example http://themes.icms.info
Phoenixsong
New Member
New Member
Posts: 5
Joined: Thu Sep 10, 2009 4:38 am

Re: Template Switcher

Post by Phoenixsong »

That is something like what I ended up doing, yes. The original UDT was pretty unwieldy anyway. Thanks.
Locked

Return to “Tips and Tricks”