Last active
February 21, 2019 11:55
-
-
Save Uriel29/c5562b0ad53c8ccc5ab6 to your computer and use it in GitHub Desktop.
Custom description Joomla AND Seblod and title page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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