+ Reply to Thread
Results 1 to 6 of 6

Thread: site map plugin

  1. #1

    site map plugin

    I noticed that categories in my auto websites are showing in the sitemap.xml which is automatically generated by the sitemap plugin, although I have set my website to hide empty categories from showing in home page.

    I suggest an update to the plugin to allow users to select whether or not they want to hide empty categories from showing into sitemap.xml file.

    Currently sitemap.xml is showing all categories and ultimately it will be indexed by google which does gives fake results to website visitors.

  2. #2
    Waiting for a reply please

  3. #3
    Hello Moosa,

    You can try to do it yourself through ftp.
    Open file: ftp://plugins>>sitemap>>rlSitemap.class.php

    find method: getCategories and replace it to:

    PHP Code:
    Only registered members can view the code
    save and check sitemap again.
    Viktor,
    Flynax technical department,
    Best wishes.

  4. #4
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    1,743
    Does this work for 4.5.2 ? please

  5. #5
    Hi Pete,

    You can try to add "return false;" in top of method.

    Attached Images Attached Images
    Thank you, Curtis.
    @Flynax Company

  6. #6
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    1,743
    Thanks Curtis, I found an easy way to do this without any coding required, just go in and set any hidden unused categories to inactive and problem fixed.

+ Reply to Thread