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
<!--- | |
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'; |