Joomla 3 看不到文章替代布局
Joomla 3 don't see article alternative layout
我需要为 1 个类别的文章使用替代布局。
我将布局文件添加到
site.root\templates\mytemplate\html\com_content\article\alt_layout.php
但我在文章选项中没有看到它:只有 "Use Global" 和 "Default from component"。
覆盖没有问题,但我需要额外的布局。
这里是这个问题的解决方案:
从布局名称中删除下划线 ('_'),例如
site.root\templates\mytemplate\html\com_content\article\altlayout.php
重新加载文章,瞧:-)!
我需要为 1 个类别的文章使用替代布局。 我将布局文件添加到
site.root\templates\mytemplate\html\com_content\article\alt_layout.php
但我在文章选项中没有看到它:只有 "Use Global" 和 "Default from component"。
覆盖没有问题,但我需要额外的布局。
这里是这个问题的解决方案:
从布局名称中删除下划线 ('_'),例如
site.root\templates\mytemplate\html\com_content\article\altlayout.php
重新加载文章,瞧:-)!