+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Product detail urls not showing up in generated sitemap

Product detail urls not showing up in generated sitemap

4 posts, 1 answered
  1. Stacey
    Stacey avatar
    291 posts
    Registered:
    18 Oct 2012
    06 May
    Link to this post

    I have a custom mvc widget to display products.

    The master view url is: /products/info

    The detail view url is: /products/info/<productname>  

    ex: /products/info/brick-widgets

         /products/info/clay-widgets

     

    This mvc widget sits on a hybrid page and I have implemented IContentLocatableView in the controller and the GetLocations method.  When I go to  "E-Commerce > Products" and then "Pages where products are published" I see only one entry and it is "/products/info" with a priority of 1.

     

    From everything I have read this is all I should need to do so why am I not seeing this products appear in the sitemap.gz file?  It is set to allow 5,000 records and I only have 500 showing up so it did not reach a threshold.  It does have 1 entry for "/products/info", but no detail urls.

     

    Here is the code I have in my mvc controller:

    [NonAction]
    public IEnumerable<IContentLocationInfo> GetLocations()
    {
        var location = new ContentLocationInfo()
        {
            ContentType = TypeResolutionService.ResolveType("Telerik.Sitefinity.Ecommerce.Catalog.Model.Product"),
            ProviderName = Telerik.Sitefinity.Data.ManagerBase<CatalogDataProviderBase>.GetDefaultProviderName(),
            Priority = ContentLocationPriority.Highest
        };
     
        yield return location;

     

  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    22 Sep 2016
    16 May
    Link to this post
    Hello,

    Products are not available in the sitemap, there is a feature request for this here. There is no way to include the products in the sitemap at the moment.

    Regards,
    Stanislav Velikov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  3. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    22 Sep 2016
    19 May
    Link to this post
    Hello,


    Let me know if I can further help on this or if the ticket can be considered closed?

    Regards,
    Stanislav Velikov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Stacey
    Stacey avatar
    291 posts
    Registered:
    18 Oct 2012
    19 May in reply to Stanislav Velikov
    Link to this post

    I voted for the request, but I do need to say it is unfortunate that this was not built into the eCommerce piece as SEO is pretty important. 

     

     

4 posts, 1 answered