Last active
April 27, 2018 19:10
-
-
Save stevewithington/7be5e38501efba2bfaf35834fb7eece3 to your computer and use it in GitHub Desktop.
Mura CMS: Display mobile body vs. regular body content
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
<!--- | |
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