[tutorial] Como criar template para Joomla 2.5

Mais
11 anos 6 meses atrás #80793 por eduardo.rj
eduardo.rj replied the topic: Re: [tutorial] Como criar template para Joomla 2.5
Bom, olá a todos...
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.

Mais
11 anos 6 meses atrás #80795 por eduardo.rj
eduardo.rj replied the topic: Re: [tutorial] Como criar template para Joomla 2.5
No código PHP faltou fechar uma tag ?> antes de <!DOCTYPE html PUBLIC...

<?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
  • Avatar de Uriel Autor do Tópico
  • Offline
  • JCB! Legend
  • JCB! Legend
Mais
11 anos 6 meses atrás #80801 por Uriel
Uriel replied the topic: Re: [tutorial] Como criar template para Joomla 2.5
Melhor vc Usar o template Blank >> [url=http://blank.vc" onclick="window.open(this.href);return false;]http://blank.vc[/url]
ele vem pronto bastando fazer o resto, posições e CSS

abraço

Please Entrar ou Registrar to join the conversation.

Mais
11 anos 6 meses atrás #81370 por arninne
arninne replied the topic: Re: [tutorial] Como criar template para Joomla 2.5
Ótimo tutorial, mas achei engraçado ter tantos smiles pelo texto :)

hahahaha

Please Entrar ou Registrar to join the conversation.

  • Uriel
  • Avatar de Uriel Autor do Tópico
  • Offline
  • JCB! Legend
  • JCB! Legend
Mais
11 anos 6 meses atrás #81372 por Uriel
Uriel replied the topic: Re: [tutorial] Como criar template para Joomla 2.5
Essa era ideia Arninne <!-- s;) --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Piscada" /><!-- s;) --> Não fazer um texto muito chato, mas um texto simples e legal de ler
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.