我正在爲我的新安裝Mura創建一些自定義頁面佈局(我是Mura的新手,但我們正在使用這個在我的工作,所以我正在學習,因爲我去),但我' m需要對頁面主體提供一些幫助。繼與村來了一個默認的佈局,下面的代碼是輸出頁面的主體:Mura CMS - 我有什麼選擇來顯示身體內容?
#$.dspBody(
body=$.content('body')
, pageTitle=pageTitle
, crumbList=0
, showMetaImage=0
)#
當關聯的圖像被分配到頁面,這個圖顯示了,當我擁有的頁面的索引(一例如文件夾),這很棒。但是,當您查看頁面時,它也出現在主體的頂部。
看看上面的代碼,是否有另一個屬性,我可以放在那裏刪除相關的圖像?如果是這樣,我在這裏有什麼可用的屬性?我似乎無法在Mura網站上找到有關此位代碼的任何文檔。
按照要求,對於佈局問題
<cfoutput>
<cfinclude template="inc/html_head.cfm" />
<body id="#$.getTopID()#" class="depth-#$.content('depth')# #$.createCSSHook($.content('menuTitle'))#">
<div class="coverImageWrapper">
<div class="coverImage">
<cfinclude template="inc/header.cfm" />
<cfinclude template="inc/departmentName_socialMedia.cfm" />
<cfinclude template="inc/topNav.cfm" />
</div>
</div>
<div class="secondaryPageWrapper">
<div class="container">
<div class="row">
<div class="col-md-8 mainCol">
<cfinclude template="inc/breadcrumb.cfm" />
<cfset pageTitle = $.content('type') neq 'Page' ? $.content('title') : ''>
#$.dspObjects(2)#
#$.dspBody(
body=$.content('body')
, pageTitle=pageTitle
, crumbList=0
, showMetaImage=0
)#
</div>
<aside class="col-md-4 sideCol">
#$.dspObjects(3)#
</aside>
</div>
</div>
</div>
<cfinclude template="inc/department_footer.cfm" />
<cfinclude template="inc/footer.cfm" />
<cfinclude template="inc/html_foot.cfm" />
</body>
</cfoutput>
我們需要看到不止於此代碼。這也有助於查看您的問題的屏幕截圖。在您分享的特定代碼段中,「showMetaImage」屬性控制是否顯示相關圖像。設置爲「0」不會顯示圖像。因此,代碼中必須顯示其他內容才能顯示圖像。什麼模板分配給您的文件夾頁面?那個頁面的'body'中包含了什麼(是那裏的圖像)? –
沒有比這更多的代碼。這是默認的mura頁面佈局的直接。這就是用於輸出正文的所有內容, 圖像不在文檔的正文中,也就是說,它不在可編輯內容區域中。圖像是在頁面標題之後和可編輯內容之前出現的第一個。 我已經添加了佈局中的所有代碼。 – JesseEarley
你可以分享問題的截圖嗎?還是我們可以點擊的頁面?已添加 –