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
<cfquery name="rsExample"> | |
SELECT content,siteID | |
FROM tcontent | |
WHERE ..... | |
</cfquery> | |
<cfset it=application.serviceFactory.getBean("contentIterator")> | |
<cfset it.setQuery(rsExample)/> | |
<!--- Now Iterate and pull attributes that aren't in the query ---> | |
<cfloop condition="it.hasNext()"> | |
<cfset item=it.next()> |
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
<!--- | |
Place this file in your theme remote folder | |
---> | |
<cfscript> | |
// add the content ID of the folder you wish to loop through and turn on | |
itemID='' | |
content=$.getBean('content').loadBy(contentID=itemID); | |
// Only get the feed if it's a valid node |
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> | |
<imagesizes> | |
<imagesize name="carouselimage" width="939" height="479" /> | |
</imagesizes> | |
<extensions> | |
<extension type="Component" subType="Slider" hasBody="0"> | |
<attributeset name="Slider Options" container="Basic"> | |
<attribute |
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'); | |
feed.setContentID($.getBean('content').loadBy(filename=$.content().getFilename() &'/slides').getContentID()); | |
// pull items even if nav = 0 | |
feed.setShowNavOnly(0); | |
// pull items even if display = 0 | |
feed.setLiveOnly(0); | |
it=feed.getIterator(); | |
</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
//Full Calendar | |
.MuraCalendar{ | |
// The Calendar header stuff | |
.fc-header{ | |
.fc-button{ | |
// Hover class added via js | |
&.fc-state-hover{ | |
background-color: @primary; | |
background-image: none; | |
color: @white; |
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
<cfif NOT StructKeyExists(cookie, "mylat") AND NOT StructKeyExists(cookie, "mylon")> | |
<cfparam name="country" default="US"> | |
<cfparam name="results" default=""> | |
<cftry> | |
<cfhttp url="http://freegeoip.net/xml/#cgi.remote_addr#" name="results" method="get" delimiter="#chr(10)#" timeout="10" /> | |
<cfset colname = results.columnlist> <!--- there's only one column and its name isn't something we can reference it by ---> |
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
// Placeholder Toggle jQuery Extension | |
$.fn.togglePlaceholder = function() { | |
return this.each(function() { | |
$(this) | |
.data("holder", $(this).attr("placeholder")) | |
.focusin(function(){ | |
$(this).attr('placeholder',''); | |
}) | |
.focusout(function(){ | |
$(this).attr('placeholder',$(this).data('holder')); |
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
Add this as the "custom object" source of your dropdown in form builder: | |
[m]$.siteConfig('themeAssetPath')[/m]/display_objects/states-list.cfm |
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
<!--- Drop this into your site or theme eventHandler.cfc ---> | |
<cffunction name="onContentTabBasicBottomRender"> | |
<cfset subType = application.configBean.getClassExtensionManager().getSubTypeByName("Folder","Blog", $.event('siteID'))> | |
<cfset extendSets = subType.getExtendSets(inherit=true,container='Custom',activeOnly=true)> | |
<cfoutput> | |
<!--- Loop through the extend sets ---> | |
<cfloop from="1" to="#arrayLen(extendSets)#" index="s"> | |
<cfset extendSetBean=extendSets[s]/> |
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 bean=$.getBean('content').loadBy(contentID="whatever content ID")> | |
<cfset subNav=bean.getKidsIterator()> | |
<cfif subNav.hasNext()> | |
<ul> | |
<cfloop condition="subNav.hasNext()"> | |
<cfset item=subNav.next()> | |
<li><a href="#item.getURL()#">#item.getMenuTitle()#</a></li> | |
</cfloop> | |
</ul> |