Skip to content

Instantly share code, notes, and snippets.

View JonasEriksson's full-sized avatar

Jonas JonasEriksson

View GitHub Profile
@JonasEriksson
JonasEriksson / example.css
Created May 21, 2021 16:29 — forked from dillonchanis/example.css
Tailwind Utility for using gradients with text
@layer utilities {
.text-gradient {
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
#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
@JonasEriksson
JonasEriksson / muraUserEventHandler.cfm
Created August 11, 2018 16:16 — forked from stevewithington/muraUserEventHandler.cfm
Mura CMS : Examples of how to intercept User creation, update and save events to do some processing of the User Bean and then create custom error messages as well.
<cfscript>
public any function onBeforeUserCreate($, event) {
var user = arguments.event.getValue('userbean');
// do some processing of the user 'bean'
// to create an error message, just add any key to the end of the User's getErrors() struct:
user.getErrors().createFailMessage1 = 'UserCreate fail message goes here. Sorry #user.getFName()#.';
}
public any function onBeforeUserUpdate($, event) {
var user = arguments.event.getValue('userbean');
@JonasEriksson
JonasEriksson / config.xml.cfm
Created April 16, 2016 09:49 — 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>
@JonasEriksson
JonasEriksson / extendedAttributes.cfm
Created January 17, 2016 01:13 — forked from Dan4IT/extendedAttributes.cfm
Mura Extended Attributes
<!--- There are many ways you can display extended attributes. The most common way to display the value of an attribute is to use the content bean from the event upon rendering and ask for the attribute. This can be done by using the below code: --->
<cfoutput>#$.content( {attributeName} )#</cfoutput>
<cfoutput>#$.content('productPrice')#</cfoutput>
[mura]$.content('productPrice')[/mura]
<!--- Display Extended Attribute Image, including custom image size - within Iterator --->
<img alt="#sub1.getMenuTitle()#" class="img-responsive" src="#$.getURLForImage(sub1.getfilethumbnail(size = 'standardimage'))#">
<!--- Method on displaying Mura extended attribute images, including custom image sizes --->
<!--- Assuming you've created an extended attribute 'File' type called 'extAttributeImage' --->
@JonasEriksson
JonasEriksson / Code Snippets
Created January 17, 2016 01:13 — forked from ronnieduke/Code Snippets
Mura Code Snippets
=============================
Content Image
=============================
<img src="#$.content().getImageURL(size='large')#" />
=============================
Extended Attribute Image
=============================
<!--- First, create an extended attribute with the type of 'File' --->
<img src="#$.createHREFForImage(filename=$.content('myExtAttribute'))#" />
@JonasEriksson
JonasEriksson / templatevars.cfm
Last active March 11, 2017 10:49 — forked from Dan4IT/templatevars.cfm
Mura Template Variables
<!--- Note JE: This reveals a bit much if used on a live server, so I added a simple IP check --->
<cfif cgi.REMOTE_ADDR EQ "myIPaddress">
#$.siteConfig('themeAssetPath')#
#$.siteConfig('assetPath')#
<cfdump var="#$.siteConfig().getAllValues()#">
#$.siteConfig('domain')#