Skip to content

Instantly share code, notes, and snippets.

#X-Generator: crowdin.com
#Created by JInto - www.guh-software.de
#Thu Jun 11 10:01:34 PDT 2009
advertising=Anzeigen
advertising.active=Activado
advertising.add=Agregar
advertising.addnewadzone=Agregar nueva zona publicitaria
advertising.addnewcampaign=Agregar nueva campa\u00f1a
advertising.addnewcreative=Agregar nuevo elemento creativo
advertising.addplacement=Agregar emplazamiento
@mattlevine
mattlevine / rebuild.cfm
Last active May 27, 2018 20:12 — forked from eballisty/rebuild.cfm
Rebuild Mura's default database indexes
<cfscript>
dbUtility.setTable('tcontent')
.addPrimaryKey('TContent_ID')
.addIndex('ContentID')
.addIndex('ContentHistID')
.addIndex('SiteID')
.addIndex('ParentID')
.addIndex('RemoteID')
.addIndex('ModuleID')
.addIndex('changesetID')
@mattlevine
mattlevine / muraImportContentFromRSS.cfm
Created April 27, 2018 19:24 — forked from stevewithington/muraImportContentFromRSS.cfm
Mura CMS: Example of how to import content into Mura CMS from an RSS feed. Place the file under your Mura root. For example: http://yourdomain.com/temp/import/index.cfm. Also see https://gist.github.com/stevewithington/5051646 to importUsersViaCSV
<cfscript>
param name='form.rssurl' default='http://www.npr.org/rss/rss.php?id=1014';
param name='form.parentfilename' default='blog';
param name='form.isSubmitted' default='false';
param name='form.istest' default='true';
param name='form.siteid' default='default';
$ = application.serviceFactory.getBean('$').init(form.siteid);
if ( !$.currentUser().isSuperUser() && !$.currentUser().isInGroup('admin') ) {
@mattlevine
mattlevine / muraDynamicLayoutTemplate.cfc
Created April 27, 2018 19:24 — forked from stevewithington/muraDynamicLayoutTemplate.cfc
Mura CMS: dynamically change layout templates (e.g., Allow for a "View As PDF" link, or only open children of a calendar in a blank.cfm layout template ... this way you could open it in a modal window using shadowboxjs, etc.)
component extends='mura.cfobject' {
// drop this in your site or theme eventHandler.cfc
public any function onRenderStart($) {
// allow for a 'View As PDF' link (e.g., <a href="./?viewAsPDF=1">View As PDF</a>)
if ( IsBoolean(arguments.$.event('viewAsPDF')) && arguments.$.event('viewAsPDF') ) {
arguments.$.content('template', 'pdf.cfm');
}
@mattlevine
mattlevine / muraTracePointExample.cfm
Created April 27, 2018 19:23 — forked from stevewithington/muraTracePointExample.cfm
Mura CMS : Create a Custom Trace Point. To view, login as an admin, then append your URL with ?showTrace=1. A Stack Trace with the duration and running total of milliseconds should appear in a list format. To disable, append your URL with ?showTrace=0
<!--- Place this either at the top of your file, or at the beginning of a block of code you wish to trace --->
<cfset myTracePoint = $.initTracePoint('yourFilenameOrOtherDescriptionToIdentifyThisTracePointGoesHere') />
<!--- file content or block of code goes here --->
<!--- Place this either at the bottom of your file, or at the end of a block of code you wish to trace --->
<cfset $.commitTracePoint(myTracePoint) />
@mattlevine
mattlevine / mura-form-results.cfm
Created April 27, 2018 19:23 — forked from stevewithington/mura-form-results.cfm
Mura CMS : Iterating over form results. Mura CMS form structures can change, which means fields may be added and/or deleted by Content Managers and thus the form data is stored as XML packets (WDDX, to be exact).
<cfscript>
formName = 'Information Request';
rsData = QueryNew('');
dcm = $.getBean('dataCollectionManager');
</cfscript>
<cfoutput>
<cfif !Len($.event('responseid'))>
<!--- All Form Submission Results --->
<cfscript>
@mattlevine
mattlevine / muraMethodInjection.cfm
Created April 27, 2018 19:22 — forked from stevewithington/muraMethodInjection.cfm
Mura CMS : You can easily override nearly any method in Mura with method injection. This example shows you how to do that.
<cfscript>
// drop this in your eventHandler.cfc
public any function yourMethod() {
// you do something here
}
public any function onApplicationLoad($) {
arguments.$.getBean('someBean').injectMethod('someMethod', yourMethod);
}
@mattlevine
mattlevine / muraRelatedContent.cfm
Created April 27, 2018 19:22 — forked from stevewithington/muraRelatedContent.cfm
Mura CMS : Related Content Iterators and outputting extended attributes
<cfoutput>
<cfscript>
// Content Bean of the Section of the site to narrow feed down to
cBean = $.getBean('content').loadBy(title='Blog');
// Feed Bean
fBean = $.getBean('feed');
fBean.addParam(
relationship='and'
@mattlevine
mattlevine / mura-scope.cfm
Created April 27, 2018 19:21 — forked from stevewithington/mura-scope.cfm
Mura CMS : There will be times when you need to access the Mura Scope ($), but you're not in the context of a front end request. Here's an example of how you could do that, assuming your within the Application scope of Mura.
<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);
@mattlevine
mattlevine / config.xml.cfm
Created April 27, 2018 19:20 — forked from stevewithington/config.xml.cfm
Mura CMS : Example of how to create a Frequently Asked Questions (FAQ) area/section with Mura CMS and Bootstrap3 markup.
<!--
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>