2017-07-27 61 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