no Metatags on some pages

Discussion in 'Modifications' started by Ioannis Freris, Mar 2, 2007.

  1. Ioannis Freris

    Ioannis Freris Paid Customer

    How can i add metatags on pages like Suggest Category, suggest link, or in all news pages ...:)
  2. Sergey Ten

    Sergey Ten <b>eSyndiCat Lead Developer</b>

    Hello Ioannis!

    Try to do the following:

    [ Open your suggest-category.php, suggest-link.php, news.php ]
    [ Add such code ]

    PHP:
    $description 'your meta description';
    $keywords 'your meta keywords';

    $gDirSmarty->assign('description'$description);
    $gDirSmarty->assign('keywords'$keywords);
    [ Save changes ]

    I hope it will work :) In any case please post the result.
  3. Ioannis Freris

    Ioannis Freris Paid Customer

    I get

    Fatal error: Call to a member function assign() on a non-object in public_html/suggest-link.php on line 20

    line 20 is $gDirSmarty->assign('description', $description);
  4. Sergey Ten

    Sergey Ten <b>eSyndiCat Lead Developer</b>

    Hello Ioannis!

    Which version do you use?

    Try to use such code :

    PHP:
    $description 'your meta description';
    $keywords 'your meta keywords';

    $gDirSmarty->assign_by_ref('description'$description);
    $gDirSmarty->assign_by_ref('keywords'$keywords);
  5. Mominur Rahman

    Mominur Rahman New Member

    This worked but can I add different meta description and keyword for different news. I want this feature because I will use esyndicat as a article directory rather only link directory.

Share This Page