2017-07-27 66 views
0

我需要使用替代佈局從1類別的文章。 我添加布局文件Joomla 3沒有看到文章替代佈局

site.root\templates\mytemplate\html\com_content\article\alt_layout.php 

但我沒有看到它在文章選項:只有「使用全球通」和「從組件默認」。

enter image description here

沒有問題,但覆蓋我需要額外的佈局

+0

我發現了這樣的回答: https://stackoverflow.com/questions/14378345/alternative-layout-for-article-based-on-category-in-joomla-2-5 但在我看來,它必須在joomla中實現。 – GrinderZ

+1

請勿在文件名中使用下劃線。你應該重命名爲altlayout並檢查。 – Irfan

回答

2

下面是該問題的解決方案:從您的佈局名稱,如

site.root\templates\mytemplate\html\com_content\article\altlayout.php 

刷新文章,瞧:-)

刪除下劃線( '_')!

+0

從來沒有想過在底下,非常感謝! – GrinderZ