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> | |
dbUtility.setTable('tcontent') | |
.addPrimaryKey('TContent_ID') | |
.addIndex('ContentID') | |
.addIndex('ContentHistID') | |
.addIndex('SiteID') | |
.addIndex('ParentID') | |
.addIndex('RemoteID') | |
.addIndex('ModuleID') | |
.addIndex('changesetID') |
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
function onSiteRequestStart($) { | |
if (external_service_gives_successful_login_message) { | |
userBean = $.getBean('user').loadBy(username=oAuth.prsId, $.event('siteID')); | |
userBean.setUsername(oAuth.prsId); | |
userBean.setPassword(oAuth.prsId & 'RANDOMREALLYCOMPLICATEDSTRING'); | |
userBean.setFname(oAuth.firstName); | |
userBean.setLname(oAuth.lastName); | |
userBean.setEmail(oAuth.emailAddress); | |
userBean.save(); |
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
<!--- This file is part of Mura CMS. | |
Mura CMS is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, Version 2 of the License. | |
Mura CMS is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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
public void function onSiteRequestStart(required struct $) output=false { | |
var APIUtility = $.siteConfig().getApi('json', 'v1'); | |
var Service = $.getBean('MyService'); | |
APIUtility.registerMethod('getData', Service.getData); | |
// then call the method via this url: | |
// /index.cfm/_api/json/v1/site_id/?method=getData | |
} |
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 file in: | |
#$.siteConfig('includePath')#/js/finder/config.cfm | |
or | |
#$.siteConfig('themeIncludePath')#/js/finder/config.cfm | |
---> | |
<cfset config.defaultAlledExtensions = '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,ics,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,ppsx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,m4v,less,svg'> | |
<cfset config.htmlExtensions = 'html,htm,xml,js,cfm,cfc,svg'> |