We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3751
    • 5 Posts
    My site designer wants a web page that is a sitemap. Is there something that will generate one automatically, possibly an adaptation of Wayfinder? All the searches I do come up with sitemaps for submission to Google, et al. That is a totally different topic.
      • 14214
      • 299 Posts
      I would imagine that you are using the site map for SEO reasons. I am not to MODx but am running two site maps. One was generated by the site http://www.xml-sitemaps.com and is a static map. The other is the SiteMap plugin. There is a plug in out there for GoogleSiteMap. Both of the two plugins generate XML sitemaps and are easy to use.

      http://modxcms.com/extras/search.html?query=sitemap

      -J.
        • 27442
        • 103 Posts
        Yes, wayfinder can make an html page that you can call a sitemap. Just create a page with something like
        [!Wayfinder? &startId=`0` &level!=`0` &useWeblinkUrl=`false` &rowTpl=`SiteMapRow` &rowClass=`content`!]
        

        and your SiteMapRow could be something like:
        <li[+wf.id+][+wf.classes+]>
        	<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a><br />[+wf.description+]<br />[+wf.introtext+]
        
        	[+wf.wrapper+]
        </li>

        Add CSS styling to suit your needs.