We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3177
    • 137 Posts
    Hello,
    Maybe Wayfinder can do that too.
    But we are talking about a Sitemap here.
    Did you use Wayfinder to create a sitemap?
      • 21056
      • 327 Posts
      No, but if I wanted to create one using UL/LI structure, with multilevels and in menu order, I’d use it -- since that’s exactly what it produces by default.
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 10226
        • 412 Posts
        I glanced at all the posts in this thread, but I may have missed it...

        All I get when I go to my sitemap page is...

        −
        	<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
        −
        	<url>
        <loc>http://sweetskies.fruitwerks.us/index.php</loc>
        <lastmod>2008-02-28</lastmod>
        </url>
        </urlset>


        Plenty of pages in this site smiley

        Modx 0.9.6
        SiteMap 1.0.6
          • 21056
          • 327 Posts
          What is your sitemap call - just [[Sitemap]] or any parameters?
            Author: ManagerManager plugin - customise your ModX manager interface

            Rckt - web development, Sheffield, UK
            • 10226
            • 412 Posts
            [[sitemap? &format=`sp`]]


            snippet is named sitemap.. would that make a difference? I don’t know if it calls back on itself somewhere.

            tried cached / uncached, cleared cache... same results. The document is setup correctly, blank template, text/xml. Not too bothered, I had a website make my map for me and I edited it by hand, then uploaded it to the server for google. But we like when things work so *big hmm*

            *shrug*
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              Can someone help out with styling the feed? I have the xml running correctly but I want to make it more readable to someone and use it as a sitemap on my website. The xml is setup correctly, i just want to style it now. I’ve tried understanding the xsl but It isn’t syling anything. Could someone help out?
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 3177
                • 137 Posts
                Hello Rossco,

                Did you find a solution yet?

                XSL might be a solution. Your XSL converts the XML to HTML and includes CSS and/or Style attributes.
                Another option would be to change the snippet itself and do it all in there. It fairly straightforward. I created a UL/IL construction in it, which was easy enough. Best option might be to do some sort of templating in the sitemap. So, every entry goes through a template for markup and styling. But maybe that’s reinventing the XSLT-wheel.

                Regards,

                Bert
                  • 21056
                  • 327 Posts
                  Quote from: rossco at Mar 11, 2008, 11:41 AM

                  Can someone help out with styling the feed? I have the xml running correctly but I want to make it more readable to someone and use it as a sitemap on my website. The xml is setup correctly, i just want to style it now. I’ve tried understanding the xsl but It isn’t syling anything. Could someone help out?

                  For HTML output, the easiest solution would be to use Wayfinder, which is designed exactly for this.
                    Author: ManagerManager plugin - customise your ModX manager interface

                    Rckt - web development, Sheffield, UK
                    • 11526
                    • 93 Posts
                    Yesterday I’ve installed this snippet (version 1.0.6) on a MODx installation 0.9.6 without any problems. In fact, it worked so well that I’ve tried to install it on another site, which is running MODx 0.9.6.1 and only receiving this error:

                    « MODx Parse Error »
                    MODx encountered the following error while attempting to parse the requested resource:
                    « PHP Parse Error »

                    PHP error debug
                    Error: Invalid argument supplied for foreach()
                    Error type/ Nr.: Warning - 2
                    File: /home/gucro/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code
                    Line: 208

                    Parser timing
                    MySQL: 0.0611 s (353 Requests)
                    PHP: 0.0561 s
                    Total: 0.1171 s

                    Whatever I try, I don’t get it to work on the second site (and thus on a MODx 0.9.6.1 installation)...

                    Any idea’s?
                      • 21056
                      • 327 Posts
                      Looks like it might be filtering out all the documents, but not dealing well with it -- this may help:

                      Directly below line 153
                      // filter out documents

                      try inserting the following:
                      $output = array();
                        Author: ManagerManager plugin - customise your ModX manager interface

                        Rckt - web development, Sheffield, UK