This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public any function getChildrenFeedByContentID( | |
required contentid | |
, string type='' | |
, string subtype='' | |
) { | |
var local = {}; | |
local.feed = $.getBean('feed'); | |
local.feed.setMaxItems(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public any function getLocalFeeds() { | |
return variables.$.getBean('feedManager').getFeeds(siteid=variables.$.event('siteid'), type='local'); | |
} | |
public any function getLocalFeedNames() { | |
var rs = getLocalFeeds(); | |
return rs.getRecordcount() | |
? ValueList(rs.name, '^') | |
: 'No Content Collections Exist!'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// Place these methods in your Site, Theme, or Plugin's eventHandler.cfc | |
public any function onBeforeUserSave($) { | |
var newUserBean = arguments.$.event('userBean'); | |
var oldUserBean = arguments.$.getBean('user').loadBy(userid=arguments.$.event('userid')); | |
// if you want to stuff the oldUserBean in the event | |
// $.event('oldUserBean', oldUserBean); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
1) Drop this in your theme /{SiteID}/includes/themes/{Theme}/config.xml.cfm | |
--> | |
<theme> | |
<extensions> | |
<extension type="Folder" subType="FAQ" availableSubTypes="Page/Question" iconClass="icon-question-sign"> | |
</extension> | |
<extension type="Page" subType="Question" iconClass="icon-question" hasSummary="0" hasBody="0" hasAssocFile="0"> | |
</extension> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset application.serviceFactory.getBean('fileManager').cleanFileCache('[siteid]') /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<theme> | |
<!-- Name of the theme --> | |
<name></name> | |
<!-- Version of the theme --> | |
<version></version> | |
<!-- Name of the creator/organization that developed the theme --> | |
<provider></provider> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- 1) Create a form with a hidden form field like shown below, and place it in a layout template, or in a display object, etc. ---> | |
<form method="post"> | |
<input type="text" name="myField" value="Some Value"> | |
<input type="hidden" name="myFormIsSubmitted" value="true"> | |
<input type="submit"> | |
</form> | |
<cfscript> | |
// 2) In the eventHandler.cfc (Site, Theme, Plugin, or other custom handler) you could listen for the even in one of Mura's eventHandlers such as 'onRenderStart' | |
public any function onRenderStart(event, m){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
userStrikesBean = $.getBean('userstrikes').init(username=$.currentUser('username'), configbean=$.globalConfig()); | |
WriteDump(var=userStrikesBean.getStrikes()); | |
</cfscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// this example shows how to override Mura's CSS settings in the Admin area ... | |
// you could also use jQuery or whatever other method as well. | |
// Add this method to a Mura CMS SITE, THEME or PLUGIN eventHandler.cfc | |
public any function onAdminHTMLFootRender($, event) { | |
var str = ''; | |
savecontent variable='str' { | |
WriteOutput(' | |
<style type="text/css">.mura select##restrictGroups { width:100% !important;}</style> | |
'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* base styling for Mura's jQuery Cycle 2 Slideshow Pagination */ | |
ol.mura-pager { | |
margin: 0; | |
padding: 0; | |
position: relative; | |
z-index: 2; | |
} | |
ol.mura-pager li { | |
display: inline; |