2
Hi Nmshah,
This is what i got from Fernando Santos from the Mastop Team and it does the job quit well:
Quote:
There is not a "automatic way" to enter the page description and keywords meta-tags, but you can set the "xoops_meta_keywords" and "xoops_meta_description" using parts of Mastop Publish page:
- Open the mastop_publish/index.php file.
- Go to the end of file, just above this line: $mpu_classe->updateCount();
- Insert this lines:
$xoTheme->addMeta('meta', "keywords", $mpu_classe->getVar("mpb_30_titulo")); // Get the Title of the Page and put it on 'keywords'
$xoTheme->addMeta('meta', "description", substr(strip_tags($mpu_classe->getVar("mpb_35_conteudo")), 0, 200)); // Get the 200 firsts characters of the content and put it on 'description'
- Save the file and test (here works ok using XOOPS 2.0.16).
Hope this will help you
Best regards,
Edwin
PS: I use Mastop publisher on multiple websites and i think the module is ABSOLUTELY great!
Big thanks to Mastop and again to Fernando Santos who was very helpful!