http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=
SET @someVar = 'someValue'; | |
SELECT * | |
FROM t_sometable | |
WHERE CASE @someVar <> '' THEN someColumn = @someVar ELSE someColumn = '' END; |
<!--- | |
A brief example on how to use the 'CustomUI' option when creating a class extension in Mura CMS. | |
This example assumes you have an extended attribute called 'Page/Book'. | |
It also assumes you have an attribute set using the 'CustomUI' container/tab assignment. | |
Any extended attributes you assign to the attribute set, you are responsible for collecting | |
that data using your own form fields. Make sure the 'name' and 'id' attributes match the | |
names you've used when you created the extended attributes! For example, if you have an | |
extended attribute with a name of 'bookPublisher', make sure you have a form field with an | |
'id' and 'name' attribute of 'bookPublisher'. Check your casing too! |
<!--- | |
1. Create a "Class Extension" for Link / Video | |
2. Replace the existing dspCarouselByFeedName() method in the theme's contentRenderer.cfc with the one below | |
3. Go add some Link/Video content types to your content collection. | |
For example, copy the YouTube "embed" video src link (Share > Embed) [e.g., https://www.youtube.com/embed/_l09H-3zzgA] | |
and paste that into the "URL" field when creating a content item. | |
---> | |
<cffunction name="dspCarouselByFeedName" output="false"> | |
<cfargument name="feedName" type="string" default="Slideshow" /> |
<CFSETTING ENABLECFOUTPUTONLY="Yes"> | |
<!--- 4/2/2015 by SunStar Media http://www.sunstarmedia.com/ ---> | |
<!--- more posts here: https://gamesover2600.tumblr.com/tagged/wkhtmltopdf ---> | |
<CFPARAM NAME="Attributes.wkhtmltopdfEXEPath" DEFAULT="c:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"> | |
<CFPARAM NAME="Attributes.ShowDebug" DEFAULT="no"><!--- Yes/No Shows inline results. (default = no) ---> | |
<CFPARAM NAME="Attributes.DebugVar" DEFAULT="WKHMLTOPDF_Result" TYPE="variableName"><!--- Variable name w/PDF generation data. Optional ---> | |
<CFPARAM NAME="Attributes.TimeOut" DEFAULT="60" TYPE="integer"><!--- CFExecute Timeout (Default = 60) ---> | |
<CFPARAM NAME="Attributes.HeaderURL" DEFAULT=""><!--- Publicly accessible URL. Optional ---> | |
<!--- TODO: Add HeaderSpacing ---> |
<cfscript> | |
// This Gist is very much related directly to https://gist.github.com/stevewithington/4742829 on how to import content via RSS. | |
// However, this is the main code | |
content = $.getBean('content').loadBy(remoteid = 'PrimaryKeyFromExternalDB'); | |
content.setTitle('theTitle'); | |
content.setMenuTitle(''); // we clear the other title fields so that Mura will auto-generate them based on the actual 'title' | |
content.setURLTitle(''); | |
content.setHTMLTitle(''); | |
content.setApproved(1); | |
content.setIsNav(0); |
http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=
<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'); |
<cfscript> | |
// drop this in your Site eventHandler.cfc | |
public any function onRenderStart(event, $) { | |
arguments.$.event('altTheme', 'MyTheme'); | |
} | |
// this assumes you have a theme directory called 'MyTheme' of course | |
</cfscript> |
<cfscript> | |
public any function onSiteRequestStart($) { | |
param name='session.customsession' default=getDefaultCustomSessionSettings(); | |
// you could use whatever trigger you want to set your session var(s), but i'm just using something simple for this example | |
if ( IsDefined('url.somekey') ) { | |
lock scope='session' type='exclusive' timeout=10 { | |
session.customsession = { | |
somekey = url.somekey | |
, dateinitalized = Now() |
.masonryItem { | |
width: 8.65%; | |
margin-bottom: 10px; | |
float: left; | |
} | |
.masonryItem.w2 { | |
width: 19.5%; | |
margin-bottom: 10px; | |
} | |
#masonryContainer { |