NOTICE: We are now using the Mura CMS Developer's Google Group for our Forum. While you can no longer post messages here, this forum will remain archived but unmonitored. Other support options are available here.

Next Page

Page: 1

Previous Page

Thread: Updating Site files: Shadowbox and others

Created on: 01/21/10 05:10 PM

Replies: 3

envidobi



envidobi's Gravatar

Joined: 03/01/09

Posts: 277

Updating Site files: Shadowbox and others
01/21/10 5:10 PM

Hi All,
What would be the best way to update core site files such as Shadowbox if i didn't want to worry about site updates overwriting files? Also, it seems even if i did not do site updates (only Core), and chose <cfset this.jsLibLoaded=true> in my ContentRenderer.cfc, if i'm logged in, it still seems to want to show the shadowbox-jquery file. I'd like to take advantage of all the new shadowbox features, so if someone could let me know the correct and best practice way for updating i'd be greatly appreciated!

Thanks,
David

Link | Top | Bottom

envidobi



envidobi's Gravatar

Joined: 03/01/09

Posts: 277

RE: Updating Site files: Shadowbox and others
01/23/10 12:30 PM

Anyone have any thoughts on this?

Link | Top | Bottom

matt





Joined: 04/26/08

Posts: 3674

RE: Updating Site files: Shadowbox and others
01/23/10 12:47 PM

The code that gets loaded for the default shadow boxes comes from

/[siteid]/includes/display_objects/htmlhead/shadowbox.cfm

and

/[siteid]/includes/display_objects/htmlhead/shadowbox-jquery.cfm


You could copy them to the custom directory and then redefine the loadShadowboxJS method in the local contentRenderer.cfc to point to your own custom files.

<cffunction name="loadShadowboxJS" returntype="void" output="false">
		<cfset loadJSLib() />
		<cfswitch expression="#getJsLib()#">
			<cfcase value="jquery">
					<cfset addToHTMLHeadQueue("custom/shadowbox-jquery.cfm")>
			</cfcase>
			<cfdefaultcase>
				<cfset addToHTMLHeadQueue("custom/shadowbox-prototype.cfm")>
			</cfdefaultcase>
		</cfswitch>			
	<cfset addToHTMLHeadQueue("custom/shadowbox.cfm")>
</cffunction>

=================================
Matt Levine
Team Mura
Blue River Interactive Group

Link | Top | Bottom

envidobi



envidobi's Gravatar

Joined: 03/01/09

Posts: 277

RE: Updating Site files: Shadowbox and others
01/23/10 5:08 PM

Perfect! thanks Matt! One thing that i've noticed though with the way Mura is set up, is that if i have a file put into the site manager and make an internal link to it on another page to open it up using shadowbox, it actually will try to save the file rather than play it due to the LinkServID way of grabbing the file. Is there a way to customize this so that if it happens to be a link to say an FLV file, it will actually use Shadowbox to view it? This is a big reason why i'm upgrading to the new Shadowbox, and i'd like to have full access to its capabilities with the least amount of change in MURA.

Thanks again,
David

Link | Top | Bottom

Next Page

Page: 1

Previous Page