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> | |
#expandPath(".")#<br /> <!--- for me outputs D:\websites\www.scribble.local\junk ---> | |
#expandPath("/")#<br /> <!--- for me outputs d:\websites\www.scribble.local\. Note the difference in capitalisation of the drive letter ---> | |
</cfoutput> | |
On Apache/Cfwheels/CF10: | |
/Volumes/Documents/www/foo/html | |
/Applications/ColdFusion10/cfusion/bin/redirect:/rewrite.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
<cfcomponent extends="controller"> | |
<cffunction name="init"> | |
<cfscript> | |
provides("html,json"); | |
filters(through="_isValidAjaxRequest", except="index"); | |
</cfscript> | |
</cffunction> | |
<!--- This is called remotely; | |
isAjax() just confirms this is an ajax request; |
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
<!-- The Gridmanager canvas --> | |
<div id="mycanvas" class="clearfix"></div> | |
<!-- The Form--> | |
<form method="post" action="saveme" id="gridmanager-save"> | |
<!-- hidden Field--> | |
<input type="hidden" name="mycontent" id="mycontent" /> | |
<input type="submit" name="submit" class="submit" /> | |
</form> | |
</div> |
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
# Ignore Misc Folder | |
miscellaneous | |
# unpacked plugin folders | |
plugins/**/* | |
# files directory where uploads go | |
files | |
# DBMigrate plugin: generated SQL | |
db/sql |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN" | |
"http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd"> | |
<urlrewrite> | |
<rule> | |
<note> | |
Allow TomCat to have SES links. | |
</note> | |
<!-- |
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 structkeyexists(evaluate(arguments.objectname), "featuredimage")> | |
<img src="#_getImagePath(src=evaluate(arguments.objectname).featuredimage)#"> | |
</cfif> |
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
/** | |
* Example controller: add these routes: The order is important in how they get matched. Top down! | |
* | |
* // Example Static Route - it's above the user bit so will get precedence | |
* addRoute(name="about", pattern="/about", controller="pages", action="about"); | |
* | |
* // Here's our user routes: from this point on, anything like "/foo/" will get interpreted as username = foo etc. | |
* // These two routes basically mimic wheels defaults, just with the username prefix | |
* addRoute(name="user", pattern="/[username]/[controller]/[action]/[key]"); | |
* addRoute(name="user", pattern="/[username]/[controller]/[action]/"); |
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
<script> | |
var gm=$("#mycanvas").gridmanager({ | |
// Add the custom button | |
customControls: { | |
global_col: [{ callback: 'insert_image', loc: 'top', iconClass: 'fa fa-file-image-o' }] | |
} | |
}).data('gridmanager'); | |
// Function which gets called | |
function insert_image(container, btnElem) { |
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
<div id="mycanvas" class="clearfix"> | |
<div class="row"><div class="column col-md-6 col-sm-6 col-xs-6"><!--gm-editable-region--><p>New Content</p><!--/gm-editable-region--></div><div class="column col-md-6 col-sm-6 col-xs-6 noteditable"><!--gm-editable-region--><p>Not Editable</p><!--/gm-editable-region--></div></div> | |
<div class="row"><div class="column col-md-6 col-sm-6 col-xs-6 noteditable"><!--gm-editable-region--><p>Not Editable</p><!--/gm-editable-region--></div><div class="column col-md-6 col-sm-6 col-xs-6 "><!--gm-editable-region--><p>New Content</p><!--/gm-editable-region--></div></div> | |
</div> | |
<!--================== JS ================--> | |
<script> | |
$(document).ready(function(){ |