Template personalizado não exibe conteúdo

  • rogerioag
  • Avatar de rogerioag Autor do Tópico
  • Offline
  • JCB! Colaborador
  • JCB! Colaborador
Mais
14 anos 7 meses atrás #17200 por rogerioag
rogerioag replied the topic: Re: Template personalizado não exibe conteúdo
Uriel,

se puder testar, mas acho que deve haver algum bug. Salvei meu arquivo original e deixei apenas o código abaixo:
<?php
defined( '_JEXEC' ) or die( 'Acesso restrito' );
?>

<!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="templates/system/css/system.css" type="text/css" />
	<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
	<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>

<body>
	<div id="cabecalho">
***** cabeçalho *****
		<?php echo $mainframe->getCfg('sitename'); ?>
	</div>

	<jdoc:include type="module" name="breadcrumbs" />
	<jdoc:include type="modules" name="top" />

	<div id="miolo">
***** central *****
		<jdoc:include type="component" />
	</div>

	<div id="colDireita">
***** direita *****
		<jdoc:include type="modules" name="right" />
	</div>

	<div id="rodape">
***** rodape *****
		<?php echo "Página apresentada com meuTemplate"; ?>
	</div>
</body>
</html>

Como você pode ver, não tem nada nele. Acredite: aconteceu a mesma coisa!!!
Só exibe quando tiro a DIV da coluna esquerda. Percebi agora também que a DIV do rodapé também não está sendo exibida.

Não seria um bug dessa versão 1.5.14-ptBR ?

Please Entrar ou Registrar to join the conversation.

  • rogerioag
  • Avatar de rogerioag Autor do Tópico
  • Offline
  • JCB! Colaborador
  • JCB! Colaborador
Mais
14 anos 6 meses atrás #17472 por rogerioag
rogerioag replied the topic: Re: Template personalizado não exibe conteúdo
Alguém já viu este problema ao tentar personalizar um template?

Please Entrar ou Registrar to join the conversation.

Mais
14 anos 6 meses atrás #17478 por hurry
hurry replied the topic: Re: Template personalizado não exibe conteúdo
Cara testei aqui fis no bloco de notas radinho e deu certa veja como chamei a pasition left! <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->
cheque o DOCTYPE utf=8 parece que naumesta declarado no teste q vc postou
e declare o type="xhtml" em todas asa posições.


<?php
defined( '_JEXEC' ) or die( 'Acesso restrito' );
?>

<!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" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>

<body>
<div id="cabecalho">
***** cabeçalho *****
<?php echo $mainframe->getCfg('sitename'); ?>
</div>

<jdoc:include type="module" name="breadcrumbs" />
<jdoc:include type="modules" name="top" />


<div id="colEsquerda" style="width:24%; height:300px;border:solid 1px #000; float:left;"> <!-- esquerda modulos left

menu etc -->
*******************
<jdoc:include type="modules" name="left" style="xhtml" />
*****************
</div>


<div id="miolo" style="width:50%; height:300px; border:solid 1px #000;float:left;">
***** central *****
<jdoc:include type="component" style="xhtml" />
</div>

<div id="colDireita"style="width:24%; height:300px; border:solid 1px #000; float:right;">
***** direita *****
<jdoc:include type="modules" name="right" style="xhtml"/>
</div>

<div id="rodape" style="float:left" display:blok;>
***** rodape *****
<?php echo "Página apresentada com meuTemplate"; ?>
</div>
</body>
</html>

Please Entrar ou Registrar to join the conversation.

  • rogerioag
  • Avatar de rogerioag Autor do Tópico
  • Offline
  • JCB! Colaborador
  • JCB! Colaborador
Mais
14 anos 6 meses atrás #17482 por rogerioag
rogerioag replied the topic: Re: Template personalizado não exibe conteúdo
Como utilizei o comando
<jdoc:include type="head" />
o Joomla gera a linha
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
dentro do HEAD automaticamente (não é isso mesmo???).

Alterei o código do DIV da coluna esquerda do jeito que você fez mas continua não exibindo nada. Só exibe alguma coisa se eu excluo o código abaixo:
<jdoc:include type="modules" name="left" style="xhtml" />

O que você acha que posso fazer?

Please Entrar ou Registrar to join the conversation.

Mais
14 anos 6 meses atrás #17485 por hurry
hurry replied the topic: Re: Template personalizado não exibe conteúdo
Voce colou conteudo em todas as posições do sue template? <!-- s:? --><img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confuso" /><!-- s:? -->
Voce testo outro template

Please Entrar ou Registrar to join the conversation.