[英]drupal7 theme page creation
我已經在drupal中創建了主頁。它的工作正常。但是我無法創建其他頁面(例如,服務聯系人,客戶。)(主頁和其他頁面不同)。我已經創建了page.tpl.php。我可以在.info文件中創建區域嗎? 這是我的page.tpl.php文件的附件。任何人都可以告訴我(其他頁面格式,例如一個leftcontent和2 rightcontent結構。)。 page.tpl.php:
<div id="wrapper">
<header id="header">
<div class="section clearfix">
<div class="logo_left">
<?php if ($logo): ?>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
<img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
</a>
<?php endif; ?>
</div>
<nav class="logo_right"><?php print render($page['header']);?></nav>
</div></header> <!-- /.section, /#header -->
<div id="menu">
<!--ul>
<li><a href="#">About</a></li>
<li><a href="#">Service</a></li>
<li><a href="#">Client</a></li>
<li><a href="#">Contact</a></li>
</ul-->
<?php print render($page['header_menus']); ?>
</div>
<div id="content">
<article>
<div id="content" class="column">
<?php
$url = request_uri();
if(strpos($url, "user"))
{
}
else
{
?>
<?php if ($breadcrumb): ?>
<div id="breadcrumb"><?php print $breadcrumb; ?></div>
<?php endif; ?>
為首頁創建另一個文件“ page--front.tpl.php”,其他文件可以使用page.tpl.php
您可以使用以下鏈接在“默認首頁”上設置首頁
“管理員/配置/系統/站點信息”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.