Victor Moreira 0 Denunciar post Postado Dezembro 13, 2010 Olá Pessoal. Bom, sou Newbay aqui no Joomla, mas nesse pouco tempo que estou mexendo, tenho me dedicado bastante para entender como funciona. Assisti a alguns tutoriais e estou montando meu próprio layout. Minha grande dificuldade está agora em editar o Tal de Título de Página da Front Page. Ou seja, criei os meus menus, e no Main Menu, coloquei um titulo e como para aparecer. (https://dl.dropbox.com/u/15394588/ps_01.jpg) Da página inicial, consegui formatar a apresentação dos tópicos como vocês podem ver no Screenshot (https://dl.dropbox.com/u/15394588/PS_02.jpg). Para isso utilizei o tal pasta "templates/(NOME DO MEU TEMPLATE)/HTML/ COM_CONTENT/FRONT PAGE/ DEFAULT_ITEM.php" Nele tem os códigos dos posts, mas por alguma razão, a primeira parte (do título) e a última (da paginação) não estão contidas nele. Esse é meu arquivo aberto. Pode-se notar que eu fiz umas modificações, mas que ele começa diretamente da autorização para editar, e não do título. <?php // no direct access defined('_JEXEC') or die('Restricted access'); ?> <!-- --> <?php if ($this->user->authorize('com_content', 'edit', 'content', 'all')) : ?> <div id="com_saudacao"> <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?> </div> <?php endif; ?> <!-- Começa o Título do Artigo --> <div id="com_content_title"> <p> <?php if ($this->item->params->get('show_title')) : ?> <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?> <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>"> <?php echo $this->escape($this->item->title); ?> </a> <?php else : ?> <?php echo $this->escape($this->item->title); ?> <?php endif; ?> <?php endif; ?> <!-- Icones --> <span style="float: right; margin-top: 0;"> <?php if ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?> <?php if ($this->item->params->get('show_pdf_icon')) : echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); endif; if ($this->item->params->get('show_print_icon')) : echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); endif; if ($this->item->params->get('show_email_icon')) : echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); endif; ?> <?php endif; ?> </span> </p> </div> <!-- Fim do Titulo do Artigo --> <?php if ( ($this->item->params->get('show_create_date')) || (($this->item->params->get('show_author')) && ($this->item->author != "")) || (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) || ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) || ($this->item->params->get('show_url') && $this->item->urls) ) : ?> <div class="article-tools"> <div class="article-meta"> <?php if ($this->item->params->get('show_create_date')) : ?> <span class="createdate"> <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?> <span class="createby"> <?php JText::printf(($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?> </span> <?php endif; ?> <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?> <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?> <span class="article-section"> <?php if ($this->item->params->get('link_section')) : ?> <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?> <?php endif; ?> <?php echo $this->item->section; ?> <?php if ($this->item->params->get('link_section')) : ?> <?php echo '</a>'; ?> <?php endif; ?> <?php if ($this->item->params->get('show_category')) : ?> <?php echo ' - '; ?> <?php endif; ?> </span> <?php endif; ?> <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?> <span class="article-section"> <?php if ($this->item->params->get('link_category')) : ?> <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?> <?php endif; ?> <?php echo $this->item->category; ?> <?php if ($this->item->params->get('link_section')) : ?> <?php echo '</a>'; ?> <?php endif; ?> </span> <?php endif; ?> <?php endif; ?> </div> </div> <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?> <span class="article-url"> <a href="http://<?php echo $this->item->urls ; ?>" target="_blank"> <?php echo $this->item->urls; ?></a> </span> <?php endif; ?> <?php endif; ?> <?php echo $this->item->event->beforeDisplayContent; ?> <!-- Conteúdo --> <div class="article-content"> <?php if (isset ($this->item->toc)) : ?> <?php echo $this->item->toc; ?> <?php endif; ?> <?php echo $this->item->text; ?> </div> <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?> <span class="modifydate"> <?php echo JText::_( 'Last Updated' ); ?> ( <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?> ) </span> <?php endif; ?> <!-- botão leia mais --> <div id="readmore"> <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?> <a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->item->title; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>"> <?php if ($this->item->readmore_register) : ?> <?php echo JText::_('Registre-se para ler mais...'); ?> <?php else : ?> <?php echo JText::_('<input name="readmore" type="text" size="20" value="Leia mais...">'); ?> <?php endif; ?> </a> <?php endif; ?> </div> <div class="clear"> </div> <?php echo "<br>"; ?> <div id="com_content_end"> <?php echo $this->item->event->afterDisplayContent; ?> </div> Bom, comecei a buscar, buscar, buscar onde era que essas partes superior e inferior ficavam, encontrei algumas coisas, mas nada que alterasse o Layout. Mas porque tudo isso? Primeiro porque não consigo editar o tal do título. Depois, porque queria tentar mudar o formato do guia de paginação. Alguém pode me ajudar? Alguém sabe como formatar essas partes? Obrigado! Compartilhar este post Link para o post Compartilhar em outros sites
walace 1 Denunciar post Postado Dezembro 13, 2010 O título da página você altera nas Configurações do Site, geralmente não precisa alterar codigo pra isso. Compartilhar este post Link para o post Compartilhar em outros sites
Victor Moreira 0 Denunciar post Postado Dezembro 13, 2010 Walace, Obrigado por responder. Eu não quero mudar o título, quero Formatá-lo, para manter no Padrão do meu layout. Victor Pronto arrumei as fotos. Compartilhar este post Link para o post Compartilhar em outros sites
EuToComProblema! 1 Denunciar post Postado Dezembro 14, 2010 peguei os titulos assim: $mydoc =& JFactory::getDocument(); $mytitle = $mydoc->getTitle(); dependendo o componente q você use talvez a variavel nao tenha o valor correto, mas pelo joomla sempre vai vim o titulo que você seta no adm... Compartilhar este post Link para o post Compartilhar em outros sites