Page 1 of 1

[Solved] Redirect link in menu breaks Showtime/jQuery?

Posted: Sat Feb 25, 2012 8:34 pm
by bbardon
Not sure if this belongs here or in CMSMS Product Support. M@rtijn, please move if needed.

I have a problem with Showtime when I add a menu item of type Redirect link. If the redirect menu item is activated, the CSS and jQuery required for Showtime do not load. That is, they do not appear in the page source code. If I simply deactivate the redirect link menu item, then Showtime works fine.

These lines are missing from the page source when redirect menu is active:

Code: Select all

<!--css for show1-->
<link rel="stylesheet" type="text/css" href="http://www.example.com/demo/modules/Showtime/templates/css/Show_1.css" />
<!--LOAD SHOWTIME jQuery-->
	<__script__ type="text/javascript" src="http://www.example.com/demo/modules/Showtime/templates/jquery/jquery-1.4.2.js" ></__script>
	<__script__ type="text/javascript" src="http://www.example.com/demo/modules/Showtime/templates/jquery/jquery.cycle.all.min.js" ></__script>
<!--END SHOWTIME-->
The options on the redirecting menu are Parent: none, target: have tried both none and _blank, the rest, except for the main URL, are at defaults.

I'll be glad to supply more info and help debug, just don't know exactly where to start. My versions are these:

CMSMS 1.10.3
Showtime 2.0.5

Re: Redirect link in menu breaks Showtime/jQuery

Posted: Sat Feb 25, 2012 8:53 pm
by Dr.CSS
Where does the redirect link go to?...

Maybe a link to the site might help...

Re: Redirect link in menu breaks Showtime/jQuery

Posted: Sat Feb 25, 2012 11:14 pm
by bbardon
It goes to an external web site. This site is a project for a client, so I will try to duplicate the problem on a clean install that I can share with the forum.

Re: Redirect link in menu breaks Showtime/jQuery?

Posted: Sun Feb 26, 2012 5:56 pm
by Dr.CSS
Redirected links can't have an active state and the page it goes to isn't going to have the showtime scripts or anything else that was on the page you came from, different site different stuff...

Re: Redirect link in menu breaks Showtime/jQuery?

Posted: Mon Feb 27, 2012 3:14 am
by bbardon
I understand that, this isn't about getting Showtime to run on the externally linked page.

I have a CMSMS web site with a working Showtime slide show on the home page. The problem is that when I add Add New Content, and choose a Content Type of Redirecting link, then the Showtime show on that home page gets broken. The CSS and jQuery script links for Showtime don't get added to the page source.

The two things should be completely unrelated.

Unfortunately (for me) I just did a clean install of CMSMS 1.10.3, added the Showtime module and created a show, then added a new menu of type Redirecting, and it didn't break. So debugging my main site just got harder.

Re: Redirect link in menu breaks Showtime/jQuery?

Posted: Mon Feb 27, 2012 4:28 am
by bbardon
Added some echo debugging lines in modules/Showtime/action.default.php. While they didn't help me much, the original problem disappeared. I restored that file from a backup so it matches the file as originally packaged, and the site continues to work. I have to conclude it was a caching problem, with my site cache or my browsers.

Anyway, solved for now. Thanks to Dr.CSS for the help.