Skip to content

Instantly share code, notes, and snippets.

@muracms
Last active December 27, 2015 14:59
Show Gist options
  • Save muracms/7344218 to your computer and use it in GitHub Desktop.
Save muracms/7344218 to your computer and use it in GitHub Desktop.
<cfscript>
// This determines what JavaScript library Mura should use with its built-in display objects. The options are Prototype and jQuery:
this.jslib='jquery';
// This allows you set start standard navigation behavior at lower navigation levels. For example, this would be useful if you have a section of your site that should have its own primary navigation:
this.navOffSet=0;
// This sets the maximum depth that standard navigation will follow:
this.navDepthLimit=1000;
// This allows developers to not rely on Mura to load the default JS framework and simply add it to their theme's HTMLhead:
this.jsLibLoaded=false;
// This is the default long date format for the site:
this.longDateFormat='long';
// This is the default short date format for the site:
this.shortDateFormat='short';
// This is a list of file extensions and content types that will not directly download, but instead will render in an Mura CMS page with summary information:
this.showMetaList='jpg,jpeg,png,gif';
// This is a list of what image extensions should be shown in built in content listing display objects:
this.imageInList='jpg,jpeg,png,gif';
// This tells Mura whether to serve images indirectly through fileManager.renderImage() or create direct links:
this.directImages=true;
// This allow developers to choose whether site personalizations such as ratings and favorites are attached to simple cookies or an actual Mura user. Options are user or cookie. Users do not need to login in order to save cookie-based personalizations:
this.personalization='user';
// This toggles whether the Mura tag call are actually processed by the setDynamicContent() method:
this.enableMuraTag=true;
// This toggles whether the front end toolbar should be rendered for administrative users:
this.showAdminToolBar=true;
// This toggles whether the front end toolbar should be rendered for site members:
this.showMemberToolBar=false;
// This toggles whether editable display objects like components and content collections should be rendered:
this.showEditableObjects=false;
// This toggle whether to render the request's HTMLHeadQueue and HTMLFootQueues render:
this.renderHTMLQueues=true;
// The following settings allow developers to change logical page structure. For example, some developers prefer H1 tags for their page titles, some prefer H2 tags - you can adjust this here:
this.headline='h2';
this.subHead1='h3';
this.subHead2='h4';
this.subHead3='h5';
this.subHead4='h6';
</cfscript>
showMeta = $.event('showMeta');
public any function onSiteRequestStart($) {
if ( $.event('showMeta') != 2 ) {
$.event('showMeta', 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment