We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40422
    • 7 Posts
    I have a fresh install of modx and the articles plugin setup on my server. I setup a temporary homepage while I worked on my blog. The articles container was setup as modx document (4) and the alias was set to blog. Everything worked liked a charm as I built my blog. I have tags and archives in my right column with the article listing on the left. All the links work.

    So now that I have the blog set up I wish to set it as my homepage. I though it would be as simple as going into the site settings and changing the site start page to (4) which is the blog container. At first I thought everything was good but as soon as I clicked the tag and archive links I realized that they were all broken.

    Can anyone help me understand what is going on? I'm eager to get my site online. I'll post more details tomorrow for further explanation.

    Thanks!
      • 40422
      • 7 Posts
      The URLs that are generated for the pages are something like
      /blog/tags/design

      If you type that link in, the pages work fine but after switching the main article container to the start page the Tag menu links changed to
      /tags/design

      Which didn't work because the page URLs remained
      /blog/tags/design


      Hopefully this helps a little.
        • 3749
        • 24,544 Posts
        The home page has a different URL scheme, which is throwing off your links. You could probably fix it with some config changes, but it might be easier to just put a tag for this snippet on the original Home page:

        [[RedirectToBlog]]


        <?php
        /* RedirectToBlog snippet */
        $id = 12;  // Change 12 to the ID of your blog page
        $url = $modx->makeUrl($id, "", "", "full");
        $modx->sendRedirect($url);
        




        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 40422
          • 7 Posts
          Cool thanks. Although, after some playing around, I came up with a different solution.

          I noticed that the tags were using the container alias for the links. So I actually needed to alter the way taglister was outputting the urls. I first tried creating my own custom chunk for taglister and setting the chunk in Articles' Advanced settings but it wouldn't use my custom chunk. That became another issue but I got around that by going into the core files on my server and locating the default chunk file and editing it. I know that doing that may cause problems later on but I can't seem to create the new working chunk within modx.
            • 3749
            • 24,544 Posts
            Did you notice that on the Advanced tab of Manage Articles (at the bottom), there's an Articles URL format string?


            ------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using.
            MODX info for everyone: http://bobsguides.com/modx.html
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting