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> | |
/** | |
* | |
* This file is part of MuraLocations TM | |
* (c) Stephen J. Withington, Jr. | www.stephenwithington.com | |
* | |
* CAREFULLY READ THE ENCLOSED LICENSE AGREEMENT (plugin/license.htm). BY USING THIS SOFTWARE, | |
* YOU ARE CONSENTING TO BE BOUND BY AND ARE BECOMING A PARTY TO THIS AGREEMENT. IF YOU DO NOT | |
* AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, THEN DO NOT USE THIS SOFTWARE, AND, IF APPLICABLE, | |
* RETURN THIS PRODUCT TO THE PLACE OF PURCHASE FOR A FULL REFUND. |
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> | |
<div> | |
<form action="#$.content('url')#?keywords=#$.event('keywords')#"> | |
<dl> | |
<dt>Keywords</dt> | |
<dd><input type="text" name="keywords" value="#HTMLEditFormat($.event('keywords'))#" /></dd> | |
<dd><input type="submit" value="Search" /></dd> | |
</dl> |
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
<!--- BEGIN: Bootstrap Carousel ---> | |
<cfset feed=$.getBean('feed').loadBy(name='Your FeedName Goes Here')> | |
<cfset iterator=feed.getIterator()> | |
<cfif iterator.hasNext()> | |
<div id="myCarousel" class="carousel slide"> | |
<!--- Carousel items ---> | |
<div class="carousel-inner"> | |
<cfset idx = 0> | |
<cfloop condition="iterator.hasNext()"> | |
<cfset item=iterator.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
<cfscript> | |
// Category Iterator of Children of the Current Content Node | |
itKidsCats = $.content().getKidsCategoryIterator(); | |
// Category Iterator of the CURRENT Content Node | |
itCats = $.content().getCategoriesIterator(); | |
</cfscript> | |
<cfoutput> | |
<!--- Children of the Current Content Node ---> | |
<h4>Kids Categories</h4> | |
<cfif itKidsCats.hasNext()> |
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
VBOX_VERSION=4.2.4 | |
cd /tmp | |
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso | |
mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt | |
sh /mnt/VBoxLinuxAdditions.run | |
umount /mnt | |
#rm VBoxGuestAdditions_$VBOX_VERSION.iso | |
unset VBOX_VERSION |
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
DECLARE @sqlForeignKeys VARCHAR(MAX) | |
SELECT @sqlForeignKeys = ISNULL(@sqlForeignKeys,'') + | |
'ALTER TABLE dbo.[' + OBJECT_NAME(FK.parent_object_id) + '] DROP CONSTRAINT [' + FK.name + '];' + CHAR(10) | |
FROM SYS.FOREIGN_KEYS FK | |
//PRINT(@sqlForeignKeys) | |
EXEC(@sqlForeignKeys) | |
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> | |
// place this in the theme's eventHandler.cfc and reload the application | |
public any function onBeforeUserSave(struct $) output=false { | |
var user = arguments.$.event('userBean'); | |
user.setUsername(user.getEmail()); | |
// you could also add custom errors like so | |
var hasError = false; | |
// then do some validation of input | |
// .. validation would go here .. |
OlderNewer