We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8813
    • 18 Posts
    Hello
    Here is my problem.
    I have articles into a folder linked to categories. I want to have multiples urls to link my articles not only the unique alias of this article.
    In other words, I want to have only one article (easier to manage) into multiples categories and eachone has its own url.

    Is it possible using url rewriting or another way?

    Example of url’s I’d like to have pointing the articles.

    /Categories/category1/article1.html
    /Categories/category3/article1.html
    /Categories/category2/article2.html

    And so on

    My tree in the manager :

    +Categories
    category1
    category2
    category3
    categoryn

    +Articles
    article1
    article2
    article3
    articlen

    Any help would be appreciated.

    Laurent
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      You could create web- or symlinks in the different categories.


      When I would have a blog with multiple possibly overlapping categories I would probably use a TV for the categories. If you’d then really want different links for the categories too, you could make a plugin that searches for the right article in the OnPageNotFound system event, and sends it along.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 8813
        • 18 Posts
        Thanks for your answer.
        I already have a TV (listbox multiselect) that links each items to the categories. So this is ok.
        I’ve been thinking about the solution with the OnPageNotFound but I still don’t know how to handle it to keep my url rewriting working.
        I’ll let you know about this option.