I want to put the subcategory name in the title


Hi everybody,

I bought a script and I want to change it a little bit, its a directory script.

I want to put the category name of a listing in the page title as well, not only the listing name:


  • View Listing
    function viewlink( $link_id, $limitstart, $option ) {
    global $cache, $savantConf, $mosConfig_MetaTitle, $mosConfig_MetaAuthor, $mainframe;

    $link = loadLink( $link_id, $savantConf, $custom_fields, $params );

    Set Page Title

    $mainframe->setPageTitle( $link->link_name.’ Lyrics ’ );

so basically the cat_name should be there as well. But if I add this $link->cat_name … nothing appears ! if I add this $link->cat_id only the number of the category appears.

I could post more of the script, if you need more .

Yours sincerely


Please don’t double post.

Please post all comments regarding this topic at http://phphelp.com/forums/viewtopic.php?t=7077

This topic is now locked!