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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
bbardon
New Member
New Member
Posts: 6
Joined: Sat Feb 25, 2012 7:52 pm

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

Post 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
Last edited by bbardon on Mon Feb 27, 2012 4:29 am, edited 2 times in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Redirect link in menu breaks Showtime/jQuery

Post by Dr.CSS »

Where does the redirect link go to?...

Maybe a link to the site might help...
bbardon
New Member
New Member
Posts: 6
Joined: Sat Feb 25, 2012 7:52 pm

Re: Redirect link in menu breaks Showtime/jQuery

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Redirect link in menu breaks Showtime/jQuery?

Post 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...
bbardon
New Member
New Member
Posts: 6
Joined: Sat Feb 25, 2012 7:52 pm

Re: Redirect link in menu breaks Showtime/jQuery?

Post 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.
bbardon
New Member
New Member
Posts: 6
Joined: Sat Feb 25, 2012 7:52 pm

Re: Redirect link in menu breaks Showtime/jQuery?

Post 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.
Post Reply

Return to “Modules/Add-Ons”