I am looking to adding meta tags (i.e <meta description ...> , meta keywords ....> to the forms I created with chronoforms.
I found
However, I believe the above only works for Joomla 1.5 and above.
How can I add meta tags to forums in Joomla 1.0xxx?
Thanks,
narsaw
I found
<?php
// workaround for ChronoForms bug
if ( !$mainframe->isSite() ) { return; }
$doc =& JFactory::getDocument();
$doc->setDescription ('description-string, 'title-string');
// general version
$doc->setMetaData( 'tag-name', 'tag-content', true );
// for example . . .
$doc->setMetaData('keywords', 'META, meta element, metadata, metainformation, meta data');
$doc->setMetaData('robots', 'noindex, follow');
// and so on
?>
However, I believe the above only works for Joomla 1.5 and above.
How can I add meta tags to forums in Joomla 1.0xxx?
Thanks,
narsaw
Hi narsaw,
I'm sorry, Joomla! 1.0 is now so old that if I did once know I've forgotten. You will probably still find the answer in the Joomla! docs wiki.
Bob
I'm sorry, Joomla! 1.0 is now so old that if I did once know I've forgotten. You will probably still find the answer in the Joomla! docs wiki.
Bob
i am having this problem too and cannot find a resolution in the other links.
i am running joomla 1.0.15 and sh404SEF 1.3.4 - build_288
i am running joomla 1.0.15 and sh404SEF 1.3.4 - build_288
1 year + later. I figured this could come in handy for someone. The following should override all the globals. With out the last line the set function the first override will not work. You can add a string in the function and you will get something like "test - something else"
Make sure to add before the mosShowHead();
I am sure you could get more fancy and pull the name of the form, etc...
Make sure to add before the mosShowHead();
if($_GET['chronoformname']==='referral'){
$mosConfig_sitename = 'test';
$mosConfig_MetaDesc = 'New Description here';
$mosConfig_MetaKeys = 'new,keywords,here';
$mainframe->setPagetitle('');
}
I am sure you could get more fancy and pull the name of the form, etc...
This topic is locked and no more replies can be posted.