http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=
<cfoutput> | |
<cfinclude template="inc/html_head.cfm" /> | |
<!--- By getting a feed with a blank value, Mura will return all pages underneith the homepage ---> | |
<cfset feed=$.getBean("content").loadBy(filename='',siteID=$.event("siteid"))> | |
<cfset iterator=feed.getKidsIterator()> | |
<cfif iterator.hasNext()> | |
<body id="home"> | |
<!--- add the "home" page statically ---> | |
<div class="scroll-holder" data-stub="###$.createCSSid($.content('menuTitle'))#-stub" data-image="#$.content().getImageURL('source')#" data-speed="#$.content('pDataSpeed')#"></div> |
/*================================================================*/ | |
/* DESKTOP MENU | |
/*================================================================*/ | |
if (document.documentElement.clientWidth > 767) { //if client width is greater than 767px | |
ddsmoothmenu.init({ | |
mainmenuid: "main_menu", | |
orientation: 'h', | |
contentsource: "markup", | |
showhidedelay: {showdelay: 300, hidedelay: 100} //set delay in milliseconds before sub menus appear and disappear, respectively |
<cfscript> | |
// drop this in your eventHandler.cfc | |
public void function onSiteCKFinderConfig($) { | |
var config = arguments.$.event('config'); | |
// Override CKFinder's default image compression settings to allow for hi-res images | |
config.images.maxWidth = 0; | |
config.images.maxHeight = 0; | |
config.images.quality = 100; |
<!--- | |
Place this file in your theme remote folder | |
---> | |
<cfscript> | |
// add the content ID of the folder you wish to loop through and turn on | |
itemID='' | |
content=$.getBean('content').loadBy(contentID=itemID); | |
// Only get the feed if it's a valid node |
<cffunction name="onContentEdit"> | |
<cfargument name="$" /> | |
<cfset var scripts = ''> | |
<cfif $.getSubType() Eq 'Vacancy'> | |
<cfsavecontent variable="scripts"> | |
<script> | |
jQuery(document).ready(function($){ | |
var newSummary = 'Vacancy summary ' + '<br /><span style="font-weight:normal">Place the single line vacancy description here, this will be visible in the vacancy search</span>'; | |
$('.summaryContainer label a').html(newSummary); |
<cfoutput> | |
<cfset cats = 'Weather,Local News,Arts & Culture' /> | |
<ul> | |
<cfloop array="#ListToArray(cats)#" index="c"> | |
<li> | |
<h3>#HTMLEditFormat(c)#</h3> | |
<cfscript> | |
catBean = $.getBean('category').loadBy(name=c, siteid=$.event('siteid')); | |
feed = $.getBean('feed'); |
<!--- Adapted from Steve's original gist - https://gist.github.com/stevewithington/5880459 getCustomSearch.cfm ---> | |
<!--- Needed a way to display content a user was credited for or had edited on the front end ---> | |
<!---Add this to the Theme or Site contentrenderer.cfc---> | |
<cffunction name="getUserActivity" output="no"> | |
<cfargument name="authorid" default="" required="yes" /> | |
<cfscript> | |
var local = {}; | |
local.feed=$.getBean('feed'); |
http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=
<!--- | |
Author: Stephen J. Withington, Jr. | |
Notes: Place this under a temp directory within your Mura CMS root to test. | |
For example: http://yourdomain.com/temp/json-test.cfm | |
---> | |
<cfscript> | |
param name="form.endpoint" default="content/new"; | |
param name="form.method" default="GET"; | |
param name="form.context" default=""; | |
param name='session.siteid' default='default'; |
<cfoutput> | |
<cfset catList=""> | |
<cfset it=$.content().getCategoriesIterator()> | |
<!--- Only run if there are categories applied to the page ---> | |
<cfif it.hasNext()> | |
<!--- Loop through the categories and append them to the list ---> | |
<cfloop condition="it.hasNext()"> | |
<cfset cat=it.next()> | |
<!--- Append the current category to the list ---> |