-
-
Save mattlevine/1a6c0160a7cfbd21f5243bc605869bba 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