- Postagens: 36
- Obrigados Recebidos: 0
[tutorial] Como criar template para Joomla 2.5
- eduardo.rj
- Offline
- JCB! Colaborador
tive que fazer algumas alterações no xml para instalação:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" " www.joomla.org/xml/dtd/1.6/template-install.dtd ">
<extension version="2.5" type="template" client="site">
<name>Nome</name>
<creationDate>27 Set 2012</creationDate>
<author>Nome</author>
<authorEmail>Este endereço de email está sendo protegido de spambots. Você precisa do JavaScript ativado para vê-lo.</authorEmail>
<authorUrl> www.site.com.br </authorUrl>
<copyright>Copyright (C) 2012.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>2.5.0</version>
<description>Nome</description>
<files>
<folder>css</folder>
<folder>html</folder>
<folder>images</folder>
<filename>component.php</filename>
<filename>error.php</filename>
<filename>index.php</filename>
<filename>offline.php</filename>
<filename>templateDetails.xml</filename>
</files>
<positions>
<position>direita</position>
<position>esquerda</position>
<position>pesquisa</position>
<position>logo</position>
<position>slide</position>
</positions>
</extension>
Este sim funcionou!! <!-- s;) --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="" title="Piscada" /><!-- s;) -->
Please Entrar ou Registrar to join the conversation.
- eduardo.rj
- Offline
- JCB! Colaborador
- Postagens: 36
- Obrigados Recebidos: 0
<?php
/*
# author your name or company
# copyright Copyright ? 2011 example.com. All rights reserved.
# @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website [url=http://www.example.com" onclick="window.open(this.href);return false;]http://www.example.com[/url]
*/
defined( '_JEXEC' ) or die;
// variables
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$params = &$app->getParams();
$pageclass = $params->get('pageclass_sfx');
$tpath = $this->baseurl.'/templates/'.$this->template;
$this->setGenerator(null);
// load sheets and scripts
$doc->addStyleSheet($tpath.'/css/template.css.php?v=1.0.0');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" www.w3.org/1999/xhtml " xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" /
<![endif]-->
</head>
<body class="<?=$pageclass?>">
<div id="overall">
<div id="header">
<div class="logo">
<jdoc:include type="modules" name="logo" />
</div>
</div>
<div id="main">
<div id="esquerda">
<jdoc:include type="modules" name="esquerda" style="xhtml" />
</div>
<div id="direitatopo">
<jdoc:include type="modules" name="direita"style="xhtml" />
</div>
<div class="inmain">
<jdoc:include type="message" />
<?php if ($this->countModules('slider')): ?>
<div id="slider">
<jdoc:include type="modules" name="slider" style="xhtml" />
</div>
<?php endif; ?>
<div id="texto">
<jdoc:include type="component" />
</div>
</div>
</div>
<?=$scripts?>
</html>
Por enquanto tudo Ok!... seguindo...
Please Entrar ou Registrar to join the conversation.
- Uriel
- Autor do Tópico
- Offline
- JCB! Legend
ele vem pronto bastando fazer o resto, posições e CSS
abraço
Please Entrar ou Registrar to join the conversation.
- arninne
- Offline
- JCB! Novato
- Uriel
- Autor do Tópico
- Offline
- JCB! Legend
por isso o smiles <!-- s;) --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="" title="Piscada" /><!-- s;) -->
abraço
Please Entrar ou Registrar to join the conversation.