Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Nest page urls / sitemap

  • #8134
    Avatar photo[anonymous]

    I have some articles which fall under a category (tag). This category (tag) has its own overview page. site.com/category with information about the topic. Then I have the article about this category at site.com/article. I would prefer if this were site.com/category/artcile, is this possible?

    The same applies to the sitemap, right now each page is on the same level, could I have my articles nested under their category (tag)?

    #8135
    Avatar photo[anonymous]
    [anonymous] wrote:

    site.com/category/artcile

    Hi, the easiest way I can think of to do that is to upload those articles manually in publii/webssitename/input/root-files (you should also include the index that lists the articles in the tag) and then modify the sitemap.

    Ideally, you should copy the folders generated in the output that contain the index of the articles, then hide or delete them in publii.

    If you want a slug that is site.com/category/artcile you should go to the folder input/root-files and create a new folder called category and inside this folder paste the folder containing the index of the article you copied from the output.
    input/root-files/category/article1/index.html

    I don’t know if there is a quicker or easier way to do this.