Multi-Level Categories Sitemap

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 Jahre weitere
Taking a look at the demo sitemap at http://demo.nopcommerce.com/sitemap, it shows the categories as a flat, one level list.  Is there any way where one can show such categories as a multi-level list with the respective hierarchy?

The Demo store Categories sitemap should in this way show as:

- Books
- Computers
-- Desktops
-- Notebooks
-- Accessories
-- Software & Games
- Electronics
...

Thanks for your help.
9 Jahre weitere
The sitemap already dispalys all categories
Also see the sitemap.xml

The purpose of using sitemap  is to have better SEO result, single level sitemap is more search engine friendly then multi-level
9 Jahre weitere
In this case I'm referring to the http://demo.nopcommerce.com/sitemap and not the XML sitemap.  I understand that the XML sitemap is a flat one level and for SEO, but the user sitemap (although also helps for SEO) would be more intuitive if it reflects the actual category hierarchy rather than being flat?
9 Jahre weitere
Any other thoughts on this? :)
9 Jahre weitere
I agree that it would look better if the "sub"-categories were nested under their parents, as in a tree view. Let us know if you figure out how to do it!
9 Jahre weitere
Hi,

I did a plugin for categories site map. Please have a look (DEMO link):


To DOWNLOAD this FREE plugin, go to LINK.

*** HOW TO enable it in sitemap page? ***

- Copy "Sitemap.cshtml" file to "Themes/DefaultClean/Views/Common" folder.

- Open it to modify (add a custom widget zone named "custom_categories_sitemap"):

BEFORE

@if (Model.Categories.Count > 0)
        {
            <div class="entity">
                <div class="entity-title">
                    <h2>@T("Sitemap.Categories")</h2>
                </div>
                <div class="entity-body">
                    <ul>
                        @foreach (var category in Model.Categories)
                        {
                            <li><a href="@Url.RouteUrl("Category", new { SeName = category.SeName })">@category.Name</a></li>
                        }
                    </ul>
                </div>
            </div>
        }

AFTER

@if (Model.Categories.Count > 0)
        {
            <div class="entity">
                <div class="entity-title">
                    <h2>@T("Sitemap.Categories")</h2>
                </div>
                <div class="entity-body">
                    <ul>
                        @foreach (var category in Model.Categories)
                        {
                            <li><a href="@Url.RouteUrl("Category", new { SeName = category.SeName })">@category.Name</a></li>
                        }
                    </ul>
                </div>
            </div>
            @Html.Widget("custom_categories_sitemap")
        }

- Go to admin, "Categories Site Map" plugin configuration page. Enter the custom widget zone name to the "Custom Widget Zone" text box, and then save this.


Hope this help :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.