We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45078
    • 34 Posts
    On my site, my Articles page is set to use a blank alias, so friendly URLs read mysite.com/2014/08/19/article-alias... However since the last update to Articles, I've noticed the alias field showing 'articles', it auto-generates if I delete the text and save (I've tried turning auto alias generating off in system settings, but no luck).

    This is now creating friendly URLs such as mysite.com/articles/2014/... which is not ideal. Has anyone else noticed this/found a solution?

    TIA.

    This question has been answered by rodoneill. See the first response.

      • 3749
      • 24,544 Posts
      Articles has a setting to control the alias format, though I'm not sure where it is or if it will solve your problem.
        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
        • 45078
        • 34 Posts
        Quote from: BobRay at Aug 20, 2014, 12:51 AM
        Articles has a setting to control the alias format, though I'm not sure where it is or if it will solve your problem.

        Yea, there's a systems setting called 'Articles FURL IDs' with a value of ,3:arc_ not sure what that represents, though my Articles resource has id 3.
          • 3749
          • 24,544 Posts
          I don't have the current version of Articles, but on mine, you can get to the setting I was referring to this way: Right-click on Manage Articles, and on the Advanced Settings tab, scroll to the bottom and check the Articles URL Format setting.
            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
            • 45078
            • 34 Posts
            Unfortunately that only lets me control the format of the alias structure of the article following the parent resource. It's set to year/month/day/article-alias which gets appended to the unwanted 'articles' alias.

            I feel like there is something in the Articles source that is auto generating the parent alias on save - BobRay do you know where this would be located?
            • discuss.answer
              • 45078
              • 34 Posts
              Never mind, I found this thread - https://forums.modx.com/thread/?thread=78268

              Quote from: sottwell at Aug 29, 2012, 12:37 PM
              There is no easy solution to this. It's done in the core/components/articles/model/articles/article.class.php file, around line 286

              $uri = rtrim($containerUri,'/') .'/'. rtrim($furlTemplate);


              Changing that line to
              $uri = rtrim($furlTemplate);
              works - not ideal as I'll have to keep that in mind for future updates. It's a solution for now though.