Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Last active April 27, 2018 19:10
Show Gist options
  • Save stevewithington/7be5e38501efba2bfaf35834fb7eece3 to your computer and use it in GitHub Desktop.
Save stevewithington/7be5e38501efba2bfaf35834fb7eece3 to your computer and use it in GitHub Desktop.
Mura CMS: Display mobile body vs. regular body content
<!---
Use to display mobile specific content (assumes you have an attribute called 'mobilebody')
--->
<cfset mybody = request.muramobilerequest == 1
&& YesNoFormat(m.content('hasmobilebody'))
&& Len(m.content('mobilebody'))
? m.content('mobilebody')
: m.content('body') />
#$.dspBody(
body=mybody
, pageTitle=pageTitle
, crumbList=false
, showMetaImage=true
)#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment