This file contains 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 function in your Site or Theme contentRenderer.cfc | |
Invoke by calling `$.dspDescendants()` | |
---> | |
<cffunction name="dspDescendants"> | |
<cfargument name="contentid" type="string" default="#$.content('contentid')#" /> | |
<cfset var local = {} /> | |
<cfset local.cBean = $.getBean('content').loadBy(contentid=arguments.contentid) /> | |
<cfsavecontent variable="local.str"> |
This file contains 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
<!--- Open Graph (http://ogp.me) ---> | |
<meta property="og:site_name" content="#esapiEncode('html_attr', m.siteConfig('site'))#" /> | |
<meta property="og.locale" content="#m.siteConfig('javalocale')#" /> | |
<meta property="og:title" content="#esapiEncode('html_attr', m.content('title'))#" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:url" content="#m.createHref(filename=m.content('filename'), complete=true)#" /> | |
<cfif Len(m.getURLForImage(fileid=m.content('fileid')))> | |
<meta property="og:image" content="#m.getURLForImage(fileid=m.content('fileid'), size='large', complete=true)#" /> | |
</cfif> | |
<cfif Len(m.content('metadesc'))> |
This file contains 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 of how to include the dsp_form_protect.cfm file which displays | |
the recaptcha if you have the site key and secret set in site settings. | |
---> | |
<div class="form-group<cfif listfindnocase(ErrorFields, "recaptcha", ";")> has-error</cfif>"> | |
<div class="col-sm-12"> | |
#m.dspObject_include(thefile='form/dsp_form_protect.cfm')# | |
<cfif listfindnocase(ErrorFields,"recaptcha",";")><span id="helpBlock" class="help-block">#Errors.recaptcha#</span></cfif> | |
</div> |
This file contains 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
<!--- | |
Author: Stephen J. Withington, Jr. | |
Notes: Place this under a temp directory within your Mura CMS root to test. | |
For example: http://yourdomain.com/temp/json-test.cfm | |
---> | |
<cfscript> | |
param name="form.endpoint" default="content/new"; | |
param name="form.method" default="GET"; | |
param name="form.context" default=""; | |
param name='session.siteid' default='default'; |
This file contains 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
<mura name="Custom Form" contenttypes="*"></mura> |