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
<cfsilent> | |
<cfscript> | |
mailingListName = 'Your Mailing List Name Goes Here'; | |
// MailingListBean : Loading by Mailing List Name | |
mlBean = $.getBean('mailinglistBean').loadBy( | |
name=mailingListName | |
, siteid=$.siteConfig('siteid') | |
); | |
mlid = mlBean.getMLID(); |
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> | |
// The Mura Scope : in order to access site-specific helpers (e.g., $.siteConfig()), we'll initialize it with a siteid. | |
$ = StructKeyExists(session, 'siteid') | |
? application.settingsManager.getBean('$').init(session.siteid) | |
: application.settingsManager.getBean('$').init('default'); | |
// If you're not in the context of a Front-End Request, then there is NO ContentBean! | |
// So, we need to set it if we want to access it | |
// contentBean = $.getBean('content').loadBy(filename='home'); | |
// $.setContentBean(contentBean); |
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> | |
feed=$.getBean("feed").loadBy(name="Local Index/Content Collection 'Name' Goes Here"); | |
iterator=feed.getIterator(); | |
</cfscript> | |
<cfif feed.getIsNew()> | |
<p class="alert alert-info">The Feed/Content Collection does not exist.</p> | |
<cfelseif iterator.hasNext()> | |
<cfoutput> | |
<ul> |
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
// this code goes in the file located under /{SiteID}/includes/themes/{ThemeName}/js/editor/config.js.cfm | |
config.toolbar_Default[9] = {name: 'group9', items:['Image','Flash','Media','gmap','-','Table','HorizontalRule','SpecialChar','PageBreak','-','Selectlink','SelectComponent','Templates'<cfif application.configBean.getEnableMuraTag()>,'muratag'</cfif>]}; |
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
<section> | |
<h2>Mura CMS</h2> | |
<cffeed query="rs" source="http://www.getmura.com/tasks/feed/?feedID=91B4E7A5-37AC-466A-ACDF6ABFD95ACCBD" /> | |
<cfset it = $.getBean('beanIterator').setQuery(rs) /> | |
<ul> | |
<cfif it.hasNext()> | |
<cfloop condition="it.hasNext()"> | |
<cfset item = it.next()> | |
<li> | |
<a href="#item.getValue('rsslink')#"> |
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> | |
// drop this in your Theme or Site contentRenderer.cfc | |
public any function dspComponent(string componentid, siteid=variables.$.siteConfig('siteid')) { | |
var bean = IsValid('uuid', arguments.componentid | |
? variables.$.getBean('content').loadBy(contentid=arguments.componentid, siteid=arguments.siteid) | |
: variables.$.getBean('content').loadBy(title=arguments.componentid, type='Component', siteid=arguments.siteid); | |
return !bean.getIsNew() | |
? variables.$.dspObject(object='component', objectid=bean.getContentID(), siteid=arguments.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
<cfscript> | |
component extends="mura.cfobject" output="false" { | |
// Drop the methods below in your theme or site contentRenderer.cfc | |
// This example assumes you wish to populate the Label with the content Title, and the value stored would be the URL | |
// With the methods defined below, you should be able to add the following into your extended attribute fields: | |
// Option List: [mura]$.getSpeakersOptionList()[/mura] | |
// Option Label List: [mura]$.getSpeakersOptionLabelList()[/mura] |