Integration af eget template i Joomla - Er der nogle genier som kan hjælpe? :)
Hej alle eksperterne :)Jeg er igang med at lave et joomla template til version 1.5, det er dog ikke lykkes mig at få det integreret endnu, der går ged i den når jeg forsøger at indsætte <joc:include.../> ved hver div jeg har lavet eller også er det noget andet.....
Nogle som kan se hvad jeg gør galt?
Har nedenfor listet min index.php samt template.css og templatedetails.xml
Hvis I endvidere har et link til en bedre guide på nettet vil jeg sætte stor pris på dette.
På forhånd mange tak og håber jeg snart bliver klogere :-).
Mvh. Jonas
Min 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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/css/template.css" type="text/css" />
</head>
<body>
<jdoc:include type="component" />
<div id="breadcrumb">
<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
<div id="left">
<jdoc:include type="modules" name="left" style="xhtml" />
Venstre Menu</div>
<div id="right">
<jdoc:include type="modules" name="right" style="xhtml" />
Højre Menu</div>
<div id="top">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
<div id="user3">
<jdoc:include type="modules" name="user3" style="xhtml" />
</div>
<div id="user1">User1
<jdoc:include type="modules" name="user1" style="xhtml" /></div>
<div id="user2">User2
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<div id="content">
<jdoc:include type="component" />
</div>
<div id="footer">Footer Om Hjemmeside.biz
<jdoc:include type="modules" name="footer" style="xhtml" /></div>
</div>
</body>
</html>
template.css
#breadcrumb {
width: 900px;
height: 800px;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-width: thin;
}
#top {
width: 600px;
height: 100px;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-width: thin;
text-align: right;
background: url(../images/header_logo.jpg);
background-repeat: no-repeat;
background-color: #171717
}
#user3 {
width: 600px;
height: 300px;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-width: thin;
text-align: right;
background: url(../images/top_joomla.jpg);
}
#content {
width: 600px;
height: 400px;
border-style: solid;
border-width: thin;
background: url(../images/content_joomla.jpg);
margin-left: 149px;
}
#left {
width: 148px;
height: 402px;
border-style: solid;
border-width: thin;
float: left;
background-color: #09F
}
#right {
width: 148px;
height: 402px;
border-style: solid;
border-width: thin;
float: right;
background-color: #F36
}
#user1 {
width: 148px;
height: 400px;
border-style: solid;
border-width: thin;
float: left;
background-color: #CF9
}
#user2 {
width: 148px;
height: 400px;
border-style: solid;
border-width: thin;
float: right;
background-color: #66F
}
#footer {
width: 898px;
height: 47px;
border-style: solid;
border-width: thin;
background:url(../images/footer_joomla.jpg);
background-repeat:no-repeat;
}
templatedetails.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.6//DTD template 1.6//EN" "http://dev.joomla.org/xml/1.6/template-install.dtd">
<install version="1.6" type="template">
<name>Jonas Template</name>
<creationDate>2011-07-24</creationDate>
<author>Jonas Von Elholm</author>
<authorEmail>info@hjemmeside.biz</authorEmail>
<authorUrl>http://www.hjemmeside.biz</authorUrl>
<copyright>Jonas Von Elholm 2011</copyright>
<license>GNU/GPL</license>
<version>1.6.0</version>
<description>Jonas Template</description>
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<folder>images</folder>
<folder>css</folder>
</files>
<positions>
<position>breadcrumb</position>
<position>top</position>
<position>user3</position>
<position>content</position>
<position>left</position>
<position>right</position>
<position>user1</position>
<position>user2</position>
<position>footer</position>
</positions>
</install>