We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Quote from: OpenGeek at Mar 31, 2007, 09:06 PM

    Actually, the best way is to build URL’s without an initial symbol using $modx->makeUrl()...

    $modx->makeUrl(12, '', 'param1=2&param2=1');


    Nice! Thx, Jason.
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
    • Indeed, much better!
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 11975
        • 2,542 Posts
        Quote from: pixelchutes at Mar 28, 2007, 08:19 PM

        Quote from: heliotrope at Mar 28, 2007, 10:47 AM

        Hi,

        a really handy plugin but I have errors with 404 page


        heliotrope,

        Have you tried getting the latest copy (1.0.1 I think) ? I had brought up the issue of non-404 headers to ApoXX, and it solved it for me smiley

        Please confirm you’ve got the MOST recent version (within the last week) and if not, please try and report back smiley

        sorry for the last reply

        I confirm that I’m running the latest version
        I’ve modified a bit the code to check id documentIdentifier==modx->config[error_page]
        and then return a 404 header.

        :-)
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 30277
          • 75 Posts
          Hi

          My site structure is like, mysite.com/some-page/ so if i want to use a sitemap it will parse it as mysite.com/sitemap.xml/ .I dont think SE bots will love it so is it possible to use a 301redirect for my site map only ? so it will parsed as mysite.com/sitemap.xml . Is this may work so SE bots read it as normal ? if yes can someone can share me the needed 301 code please.

          Thanks
            • 14050
            • 788 Posts
            Look at the "Override TV Setup" in the instructions at:

            http://www.modxcms.com/SEO-Strict-URLs-1335.html

            Then set sitemap.xml to "Base Name" in the seoOverride TV. That is what I did and all works fine.
              Jesse R.
              Consider trying something new and extraordinary.
              Illinois Wine

              Have you considered donating to MODx lately?
              Donate now. Every contribution helps.
              • 30277
              • 75 Posts
              Hi Jesse

              Is it like this

              Input Type: DropDown List Menu
              Input Option Values: Disabled==-1||Base Name==sitemap.xml||Append Extension==1||Folder==2
              Default Value: -1


              What is your modx version and also which sitemap plugin do you use please, thanks
                • 14050
                • 788 Posts
                Don’t change "Base Name" to sitemap.xml when setting up the seoOverride TV. Set it up exactly as he described it:

                Input Type: DropDown List Menu
                Input Option Values: Disabled==-1||Base Name==0||Append Extension==1||Folder==2
                Default Value: -1

                I am using 0.9.6 RC2 on the particular setup I am talking about, and I am using sitemap:

                http://www.modxcms.com/sitemap-711.html
                  Jesse R.
                  Consider trying something new and extraordinary.
                  Illinois Wine

                  Have you considered donating to MODx lately?
                  Donate now. Every contribution helps.
                  • 27376
                  • 576 Posts
                  @tom41,

                  You might also want to read this: Template Variables
                    • 30277
                    • 75 Posts
                    ok i created a snipplet called GoogleSiteMap_XML and paste the code in it.

                    created a tv as seoOverride and paste this code in it
                    Input Type: DropDown List Menu
                    Input Option Values: Disabled==-1||Base Name==0||Append Extension==1||Folder==2
                    Default Value: -1


                    created a doc, alias:sitemap.xml (but nothing in it)

                    now what must i do ? :’( please explain for a noob and not fluent english guy, thanks



                    @thanks sirlance
                      • 14050
                      • 788 Posts
                      Here is the step by step instructions for getting the Sitemap Snippet working:

                      http://wiki.modxcms.com/index.php/SiteMap:_Google_sitemaps_in_MODx

                      In essence though, place the snippet call inside the content of the document you created, that has the alias, "sitemap.xml" Make sure this page has its content type set to "text/xml" in the "Page Settings."

                      The snippet call should look something like:


                      [!GoogleSiteMap_XML? &format=`sp` &excludeTemplates=`blank,OTHER_TEMPLATES_TO_EXCLUDE`!]

                      Then set the seoOverride for this page to "Base Name."
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.