2013-08-17 43 views
4

我想創建一個template.I已經在模板文件夾中創建一個文件夾模板,也創造了兩個文件的index.php和templateDetails.xmlJoomla模板文件夾中的模板經理不顯示

我的index.php有以下代碼

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > 
<head> 
<jdoc:include type="head" /> 
</head> 

<body> 

<jdoc:include type="component" /> 

</body> 
</html> 

和templateDetails.xml具有以下代碼,我是因爲初學者而複製的。

<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" 
"http://dev.joomla.org/xml/1.5/template-install.dtd"> 
<install version="3.1.5" type="template"> 
     <name>template _tut</name> 
     <creationDate>31-01-2009</creationDate> 
     <author>Nettut Fan</author> 
     <authorEmail>[email protected]</authorEmail> 
     <authorUrl>http://www.siteurl.com</authorUrl> 
     <copyright>You 2009</copyright> 
     <license>GNU/GPL</license> 
     <version>1.0.0</version> 
     <description>Template Tut</description> 
     <files> 
       <filename>index.php</filename> 
       <filename>templateDetails.xml</filename> 
       <filename>css/template.css</filename> 
     </files>   


     <positions> 
       <position>breadcrumb</position> 
       <position>left</position> 
       <position>right</position> 
       <position>top</position> 
       <position>user1</position> 
       <position>user2</position> 
       <position>user3</position> 
       <position>user4</position> 
       <position>footer</position> 
     </positions> 
</install> 

我的joomla版本是3.1.5,儘管做了上述步驟我的模板文件夾不顯示在模板管理器中。

回答

2

您需要安裝模板才能完全註冊。

有2種方式這樣做的:

  1. 下載你的文件,壓縮起來,並安裝它,就像任何其他擴展。
  2. 在Joomla後端,請轉至「Extension Manager」,然後選擇「Discover」。這將檢測未安裝的擴展,並應將您的模板放在列表中。檢查並安裝它

希望這有助於