1
Hi all,
If I set a different meta description for each page in some module, depending on page name and such, XOOPS engine reset it and put the default one.
I found this in class/theme.php line (272):
// @internal: Lame fix to ensure the metas specified in the XOOPS config page don't appear twice
$old = array( 'robots', 'keywords', 'description', 'rating', 'author', 'copyright' );
foreach ( $this->metas['meta'] as $name => $value ) {
if ( in_array( $name, $old ) ) {
$this->template->assign( "xoops_meta_$name", htmlspecialchars( $value, ENT_QUOTES ) );
unset( $this->metas['meta'][$name] );
}
}
I tried removing "description" from $old array, and it works, BUT there is second META DESCRIPTION generated just below with DEFAULT value.
So in comments it says that its "Lame fix to ensure the metas specified in the XOOPS config page don't appear twice"
They forgot to put that because of this "lame" fix, all pages shows same description ...
Is there a way to fix this to show only one META DESCRIPTION (and keywords), the good one specified in modules ?
Thank you very much for your help.