Forums

Metadata Chronoform page Joomla 1.6.3

certi 17 Jun, 2011
Hello everyone,


I have a issue with meta tag and chronoform page.

I explain my problem on a joomla forum, and according the an admin there, the issue could come from Chronoform.

this is the link to the forum

http://forum.joomla.org/viewtopic.php?f=618&t=588438&p=2525225#p2525225


When I am seting up a meta tag description and meta keyword, in the menu item which point to a chronoform page I am getting the meta tag description of the website (main meta tag) instead of the one I set in the menu item.

according to the feedback on the forum, It can be chronoform which doesnt respect joomla specification.


Does anyone have a idea ?

Does anyone have the same problem as me, or can reproduce it ?

Thank you,
certi 17 Jun, 2011
btw, I tried this:

<?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
?>



with the if part and without it... but I am getting a php error.

or maybe I didnt place it correctly ?
certi 19 Jun, 2011
found a work around by adding a little code in the index.php file of my template:

place it at the place of:

<jdoc:include type="head" />

-----------------

<!--[work around joomla component issue]-->
<jdoc:include type="head" />

<?php
$currentMenuId = JSite::getMenu()->getActive()->id ;
if($currentMenuId == '116') // 116 is the ID number of the menu pointing to the component
{
$this->setMetaData( 'description', 'my description' );
$this->setMetaData( 'keywords', 'my keyword' );
}
else
{
// do nothing
}
?>
BobClorsBog 20 Jun, 2011
http://www.louis-vuitton-sale-uk.com/I have forgotten to remind you. The matchless message, is pleasant to me🙂 I am sorry, this variant does not approach me. Louis Vuitton Monogram Vernis Alma BB , I apologise, but, in my opinion, you commit an error. I suggest it to discuss. In it something is. Thanks for the help in this question. All ingenious is simple. I am sorry, that I interfere, would like to offer other decision. Bravo, remarkable idea and is duly Louis Vuitton Suhali Leather Lockit MM .
This topic is locked and no more replies can be posted.