We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19257
    • 141 Posts
    I don’t remember making an "untitled-document".. It isn’t anywhere on my site menu structure, and I have no clue how to get Google to go by what my site structure looks like now. Any suggestions?
      • 4310
      • 2,310 Posts
      Perhaps try clearing the site cache and viewing the site map again.
      If the link is still there what happens if you tyr to visit it?
        • 8790
        • 526 Posts
        I just tried the snippet for the first time and followed the wiki http://wiki.modxcms.com/index.php/SiteMap:_Google_sitemaps_in_MODx

        However, something I don’t understand is how can I define a starting point for site map???

        I mean, I dont want it to start collecting pages from Id=0, I want it to start at the real root of the site wich is not 0, but 48.
        And 48 is NOT published, so it does not go through (wath is not a real good idea)

        For the moment sitemap snippet can’t see anything but the 3 pages lets under level0 from demo install.


        Thank you
          Schtroumpf Grognon - Grouchy Smurf
          ---------------------------------
          Faites pas attention.. - Don't pay attention
          http://www.dzi-neo.net
          • 5727
          • 160 Posts
          Quote from: elz64 at Aug 11, 2008, 02:22 AM

          However, something I don’t understand is how can I define a starting point for site map???

          Use the startid parameter:
          [!SiteMap? &startid=`48`!]
          
            Olivier Deland
            Montreal, Canada - Web Developer
            • 18367
            • 834 Posts
            HI,

            followed the wiki instructions
            1. Create a document in the root level of your document tree (it does not to sit in the root level but it has to be available from the root level of the site). Use blank document template (an empty one) and do not use Rich Text Editor.
            1. Set the content type to text/xml.
            2. Set alias to sitemap.xml.
            2. In the document content textarea place a snippet call:

            [!SiteMap? &format=`sp`!]

            3. Save and publish the document.

            That’s all!

            but I get this error

            XML Parsing Error: XML or text declaration not at start of entity
            Location: http://www.aquaculturecouncilwa.com/sitemap.xml
            Line Number 1, Column 4:<p><?xml version="1.0" encoding="UTF-8"?>
            ---^


            Where do I go from here?

              Content Creator and Copywriter
              • 18367
              • 834 Posts
              OK,

              will answer my own question here.

              Despite turning off TinyMCE for this document it kept putting in <p> tags everytime I saved it. (Those of you used to Tiny MCE will well know the problems it causes.)

              Anyway, what I did as a work around was create a new template (called empty) and placed the call in there.

              Then, in the document I just left it completely blank. Voila, I now have an unstyled xml file.

                Content Creator and Copywriter
                • 3677
                • 130 Posts
                Hi,

                I think that this Sitemap tool is really useful, but I’ve discovered a problem. It does not co-exist well with a site that is using the SEO Strict URL plug-in. Since both tools are tailored towards SEO enthusiasts, I think it is likely that someone will try to use both on their site.

                Here’s the deal...The SEO Strict URL plugin is re-writing all of the URLs. So for example on my site I like the look of base name only with no extension.

                I prefer: http://seoconductor.com/about
                and not: http://seoconductor.com/about.html

                So, in my sitemap I want all of my important pages to be listed just as I am presenting them to the public (without the extension).

                The problem is that while I am presenting them without extension to the public, the Sitemap plug-in is unaware of the rewrite that is being done by the Strict URL plug-in. The result is that it lists all of the documents in the sitemap with .html extension. Then when googlebot looks at the sitemap it will find that every single URL in the sitemap is being is being 301 redirected and complain.

                I found a temp workaround for this if you want to use Base Name and the Sitemap Snippet:
                1. Turn off the "Suffix for URLs" setting in Modx Config. I.E. clear the ".html" setting.
                2. Configure your docs to use "Base Name" via the Strict URL plug-in.

                This isn’t ideal though, because you won’t be able to utilize the SEO Strict Override TV to "append extension" for select documents. What happens is it will have nothing to append since it takes this extension from the MODX "Suffix For URL" setting that we already cleared. In this case I found another workaround...for the specific doc that you need to have the extension just change the doc alias such that it has .html at the end.

                What I’d love to see is a way to make these two plug-ins more aware of each other. Over time I tend to forget all these workarounds I put in place.

                Is there any way to code the sitemap snippet to check for the SEO Strict configuration before appending a doc to the sitemap?

                Thanks,
                -Brian


                  • 36592
                  • 970 Posts
                  I think this happens when ’(blank)’ template is used for the sitemap document.

                  I made a new template which contains only [*content*] and attached seoOverride TV to that simple template.
                  If you set that template to your sitemap document, URL rewriting of SEO Strict plugin works.
                    • 3677
                    • 130 Posts
                    Hey tkfm,

                    I’m not sure I follow or maybe we are talking about different things.

                    I also have a template just for the Sitemap.xml doc called "Sitemap". This template only contains the line [*content*] like you said.

                    Can you clarify what you mean when you say:
                    Quote from: tkfm at Oct 02, 2008, 07:35 PM

                    I made a new template which contains only [*content*] and attached seoOverride TV to that simple template.

                    When you say attached SeoOverride TV to that template do you mean as an "Assigned Template Variable" ? I’ve also done that.

                    When you say that "rewriting of SEO strict plugin works" do you mean that you are able to examine the resulting sitemap.xml file that is generated for the site and each URL listed in the sitemap reflects the proper setting for the corresponding document’s SeoOverride TV? That doesn’t happen for me. Every single URL generated uses the Friendly URL config that would appear without SEO Strict being installed. In my case it means every URL has a .html extension regardless of the SeoOverride setting.

                    -Brian
                      • 36592
                      • 970 Posts
                      Quote from: bmilton at Oct 02, 2008, 08:27 PM

                      When you say attached SeoOverride TV to that template do you mean as an "Assigned Template Variable" ? I’ve also done that.
                      Sorry for my bad English, I meant ’Assign seoOverride TV to that new template’ as you already did.


                      When you say that "rewriting of SEO strict plugin works" do you mean that you are able to examine the resulting sitemap.xml file that is generated for the site and each URL listed in the sitemap reflects the proper setting for the corresponding document’s SeoOverride TV?
                      Yes. I am not doing so complicated URL rewriting, but seoOverride TV’s value seems to be effected in the output of sitemap snippet.
                      But as I wrote at the following thread, I slightly changed URL rewriting rule of SEO Strict URL plungin.
                      I think that it’s the only difference between us...
                      http://modxcms.com/forums/index.php/topic,12452.msg178032.html#msg178032