Seo Title modify order

ClassiBase classifieds script Forums General help Seo Title modify order

This topic contains 4 replies, has 2 voices, and was last updated by  ClassiBase 3 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1072 Reply

    Elite Tan
    Participant

    How to change the order of the seo title? Like we want it to be
    Title – Category – SiteName

    Right now the problem is for ad posting, the ad posted the seo title is
    Title – SiteName

    We want to make it for ad to display:
    Title – Category – SiteName

    Please advice which file and code to modify?

    #1076 Reply

    ClassiBase
    Keymaster

    Fro item page you can edit /sys/app/controllers/IndexController.php file line 734 before assigning title to view. $this->setMeta('title', $title);

    Again remember changes made to script will be deleted on next script update.

    #1077 Reply

    Elite Tan
    Participant

    Thanks Support, what is the code for the current catgoery the ad is in? Will like to include $Category, $title, what should be the $Category code?

    #1079 Reply

    Elite Tan
    Participant

    Support I tried this but doesn’t work, how to include selcted category?

    $this->setMeta(‘title’, $title, ‘selected_category’,$selected_category);

    #1082 Reply

    ClassiBase
    Keymaster

    To display “Category title” “Ad title” for item page title then use following code

    $this->setMeta('title', Category::getName($ad->Category).' '.$ad->title);

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Seo Title modify order
Your information: