Skip to content

Instantly share code, notes, and snippets.

@Uriel29
Last active February 21, 2019 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Uriel29/c5562b0ad53c8ccc5ab6 to your computer and use it in GitHub Desktop.
Save Uriel29/c5562b0ad53c8ccc5ab6 to your computer and use it in GitHub Desktop.
Custom description Joomla AND Seblod and title page
<?php
$app = JFactory::getApplication();
$this->setTitle( 'meu titulo de página' );
//nem sempre funciona
?>
<?php
$document = JFactory::getDocument(); //chama o sistema do Joomla
$document->setTitle( 'meu titulo de página' );
$est= $cck->getValue('estado'); // exemplos
$cit = $cck->getValue('cidade');
$nom = $cck->getValue('nome');
$descri = " $nom, $tip de $cit:$est"; // receve todos os dados
$document->setDescription($descri); // setando a nova descrição, funciona perfeito
?>
//se vc precisa que suas descrições custom, vc pode fazer isso facilmente no seu override.
//Acima temos um exemplo simples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment