Joomla 2.5 首页覆盖
我刚刚开始使用 Joomla。我通过在模板中创建 html/com_content/article 目录并从 /com_content 目录复制必要的文件,成功覆盖了文章页面。
我读到这对于首页也是可能的。然而,我似乎缺少 /com_content 目录中的 frontpage 目录。 Joomla 2.5 是否仍支持此功能?我真的不想为我的首页使用不同的模板,但看起来这可能是我唯一的选择。
任何帮助将不胜感激。
干杯 汤姆
I'm just getting into Joomla. I've successfully overridden article pages by creating an html/com_content/article directory within my template and copied the necessary files from the /com_content directory.
I've read that this is also possible for the frontpage. It seems however I'm missing the frontpage directory from my /com_content directory. Is this still supported in Joomla 2.5. I don't really want to have to use a different template for my frontpage, but it looks like this may be my only option.
Any help would be greatly appreciated.
Cheers
Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“首页”现在称为“精选”。
覆盖
/components/com_content/views/featured/tmpl
中的文件'frontpage' is now called 'featured'.
Override the files in
/components/com_content/views/featured/tmpl
“首页”只是您认为位于“首页”上的文章的集合。当您说您“覆盖”文章页面时,我不确定您的意思是什么......您指的是模板吗?您不必对每篇文章都这样做(如果您暗示您这样做的话)。
我想如果您覆盖您创建的每篇文章,您可能会误解 Joomla 模板系统如何在该网站上工作?没有“frontpage”目录,因为没有真正的“frontpage”;您分配的主模板地址为首页和网站上的所有其他页面(每篇文章),除非另有说明。
因此,调整您的主模板来调整您的首页。我认为您以错误的方式使用模板覆盖。
The 'front page' is simply a collection of articles that you deem to be on the 'frontpage'. I'm not sure what you mean when you say you've "overridden" article pages... are you referring to the template? You don't have to do that for each article (if that's what you're implying you did).
I think perhaps you're misunderstanding how the templating system of Joomla works with regards to the site if you're overriding each article you create? There is no 'frontpage' directory because there is no real 'frontpage'; the main template you assign with address the frontpage and all other pages on the site (every article) unless otherwise told not to.
So adjust your main template to adjust your frontpage. I think you're using template overrides in the wrong way.