简体   繁体   English

在Drupal中添加新主页

[英]Adding a new homepage to Drupal

I'm just getting started with Drupal and have added my preffered modules. 我刚刚开始使用Drupal,并添加了我的常用模块。 I have also added my front-end framework module - which is Foundation Zurb. 我还添加了我的前端框架模块-Foundation Zurb。 Now I'd like to change the default blog-like structure of the site and would like to add a custom developed homepage. 现在,我想更改该站点的默认类似博客的结构,并想添加一个自定义开发的主页。 Been trying to put my head around this for over 3 days with no success. 尝试解决这个问题超过3天没有成功。 I followed the direction on the Drupal docs - which is a bit confusing and rigid but something I dont grasp is does the page--front.tpl.php actually end up being the home page? 我遵循了Drupal文档上的指示-这有点令人困惑和刻板,但我不明白的是页面--front.tpl.php实际上最终是主页吗? Also where would I put my css and other js scripts? 另外,我将CSS和其他js脚本放在哪里?

If this is the case then what would I need to do to add a navigation to this homepage which would then provide links to my site? 如果是这种情况,那么我需要怎么做才能向该主页添加导航,然后提供指向我网站的链接? Some mind opening guidance is welcome 欢迎一些开放思想的指导

You can set any node in any content type to be the home page. 您可以将任何内容类型中的任何节点设置为主页。 So first create your content type, then node in that type. 因此,首先创建您的内容类型,然后创建该类型的节点。

Then go to Confugration -> System -> Site information in admin menu and there you have Front page section. 然后转到“管理”菜单中的“配置”->“系统”->“站点信息”,那里有“首页”部分。 Add your page path to "Default front page" field and that's it - your page will become new home page. 将页面路径添加到“默认首页”字段中,就是这样-您的页面将成为新的主页。

You can also enable the default view "Frontpage" that has a path /frontpage. 您也可以启用具有路径/ frontpage的默认视图“ Frontpage”。 In this you can customize the sorting and filtering of what is being shown. 在此您可以自定义显示内容的排序和过滤。 Then visit the "Site information" page and set "/frontpage" as your default frontpage. 然后访问“站点信息”页面,并将“ / frontpage”设置为默认的首页。

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

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