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> | |
sectionFilename = 'blog'; | |
// feed setup | |
feed = $.getBean('feed').setMaxItems(3).setSortBy('releaseDate').setSortDiretion('desc'); | |
// pull only from the desired section | |
cBean = $.getBean('content').loadBy(filename=sectionFilename); | |
if ( !cBean.getIsNew() ) { | |
feed.addParam( | |
relationship='AND' |
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
<cfoutput> | |
<cfscript> | |
// Access all of the current content bean's extended attributes | |
$.content().getExtendedAttributes(); | |
// Access a specific Extend Set's attributes of the current content bean | |
$.content().getExtendedAttributes(name='Your Extend Set Name Goes Here'); | |
// Access a query/recordset of the current content bean's extended attributes | |
$.content().getExtendedAttributesQuery(); |
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
<!--- | |
To alter the link output of Mura's calendar, you could drop these custom methods into your contentRenderer.cfc | |
(either the Site or Theme, it doesn't matter). | |
Then, copy the entire directory located under /{SiteID}/includes/display_objects/calendar/ | |
and paste it under either the /custom/ directory, or under your theme at: | |
/{SiteID}/includes/themes/{ThemeName}/display_objects/ | |
Finally, open the dsp_dp_showmonth.cfm file, and change the call to dspNestedNav() to $.dspCalendarNav() | |
---> | |
<cffunction name="dspCalendarNav" output="false" returntype="string"> |
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
<!--- | |
Form more information on configuration of CKFinder, visit: | |
http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.html#.setupCKEditor | |
---> | |
<cfoutput> | |
<form> | |
<label for="yourTextAreaID">Your Message</label> | |
<textarea id="yourTextAreaID" name="frm-message" class="htmlEditor"> | |
</textarea> | |
</form> |
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 Site or Theme eventHandler.cfc | |
public any function onBeforeContentSave($) { | |
// reference to the newBean | |
var newBean = arguments.$.event('newBean'); | |
// reference to the original contentBean | |
var oldBean = arguments.$.event('contentBean'); | |
// example on how to create some errors | |
var error = ''; |
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
<cfoutput> | |
<!--- place this snippet wherever you want your form to show up ---> | |
#$.dspThemeInclude('display_objects/sample_form.cfm')# | |
</cfoutput> |
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 to your /config/settings.ini.cfm ---> | |
maxsourceimagewidth=99999 | |
<!--- | |
As long as the source image width is less than the value (in pixels) entered above, | |
then the source image will NOT be modified at all | |
---> | |
<!--- | |
Then, you will probably want to copy the '/display_objects/gallery/' directory, |
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
<!--- | |
1) Create a directory called 'gallery' under either: | |
a) /{SiteID}/includes/display_objects/custom/gallery/ | |
OR | |
b) /{SiteID}/includes/themes/{ThemeName}/display_objects/gallery/ | |
2) Add an index.cfm file to the above directory, and then place this code in it. | |
---> | |
<cfscript> | |
$.loadShadowboxJS(); |
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 config.xml.cfm file, then reload the application | |
to create a new Folder/Columns content type | |
---> | |
<extension type="Folder" subType="Columns"> | |
<attributeset name="Column Settings" container="Basic"> | |
<attribute | |
name="columnCount" | |
label="# Columns" | |
hint="Select the number of columns you wish to split the body area into." |