简体   繁体   English

Joomla,要链接到其他页面吗?

[英]Joomla, Linking to other pages…?

I'm using Joomla on my site : My Site 我在我的网站上使用Joomla: 我的网站

But I'm having a few issues, I've made each area a "Module" within Joomla and made them HTML Regions to edit the content etc. 但是我遇到了一些问题,我在Joomla中将每个区域都设置为“模块”,并使其成为HTML区域来编辑内容等。

But for the About Us / Our Work Pages' etc. I'd like to also link to another PHP Page, which has a different CSS / XHTML Layout, Rather than use the Joomla in built menu system and the one page template that i'm currently using. 但是对于“关于我们/我们的工作页面”等,我也想链接到另一个PHP页面,该页面具有不同的CSS / XHTML布局,而不是在内置菜单系统中使用Joomla和我所使用的一页模板。 m当前正在使用。

How do I achieve this? 我该如何实现?

It is possible to create two templates and assign one template as default for whole site and the second one only for main page. 可以创建两个模板,并为整个站点分配一个模板作为默认模板,而为主页分配另一个模板。 Using this technique you can assign different teamplates for each page. 使用此技术,您可以为每个页面分配不同的团队标识。

http://forum.joomla.org/viewtopic.php?f=466&t=303107 http://forum.joomla.org/viewtopic.php?f=466&t=303107

In index.php, you can check the current article id or menu id 在index.php中,您可以检查当前的文章ID或菜单ID

$ids = array(1,2,3)

if(in_array($article_id, $ids))
{

}else{

}

Now the articles with id 1,2 and 3 will have a slightly different layout. 现在,编号为1,2和3的文章将具有稍微不同的布局。
If you want a total different layout, use ruslan's answer. 如果您想要一个完全不同的布局,请使用ruslan的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM