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.

Is there a way to create posts automatically inside subfolders?

  • #8583
    Avatar photo[anonymous]

    I am designing an online store and I would like to divide all the web content as follows: main / car / bmw / 5 series / 525m.

    Is there any way to do this without having to create all the folders by hand and modify the sitemap?

    #8584
    Avatar photo[anonymous]

    Posts are created under a directory named after the “slug”. This can be found clicking the gear in the upper right hand corner and clicking on SEO.

    To achieve your goal, it appears you want to create tags, then include the tags within the post – again click the gear and then click Tags. From there, you can add a menu and add your tag names to help a customer drill down to the products they want. When you include tag names in your menu, you are linking to tag pages. Tag pages show individual posts which would normally have content. I am assuming that your posts have product specific information which is good.

    It is not clear if you are using a storefront or what theme you are using. You may/may not need to modify the theme depending upon your results.

    I hope this helps. Let us know.

    Cheers!!

    #8602
    Avatar photo[anonymous]

    Additionally, I’d give these threads and posts a look if you’re interested in adding breadcrumbs:

    Breadcrumbs for Publii: https://cv.domagic.site/posts/breadcrumbs-for-publii

    Breadcrumb and multilanguage: https://forum.getpublii.com/topic/breadcrumb-and-multilanguage/

    #8664
    Avatar photo[anonymous]
    publii-slpa wrote:

    Posts are created under a directory named after the “slug”. This can be found clicking the gear in the upper right hand corner and clicking on SEO.

    To achieve your goal, it appears you want to create tags, then include the tags within the post – again click the gear and then click Tags. From there, you can add a menu and add your tag names to help a customer drill down to the products they want. When you include tag names in your menu, you are linking to tag pages. Tag pages show individual posts which would normally have content. I am assuming that your posts have product specific information which is good.

    It is not clear if you are using a storefront or what theme you are using. You may/may not need to modify the theme depending upon your results.

    I hope this helps. Let us know.

    Cheers!!

    Thanks for your answer, maybe I didn’t explain correctly. I have created a web page in 2 languages with their respective directories

    http://www.example/es/spanish.html
    http://www.example/en/english.html

    The problem is that to achieve this I had to create “by hand” the posts and their respective folders in input/root/files, and create by hand a sitemap compatible with multilanguage and modify the schma.

    This is not very complicated for very small sites. But on a large site it is a tedious task. I would simply like that just as you create a new folder and an index inside it when you create a tag, that the posts can be put in that folder.

    I’m sorry for my words, I don’t know how to explain it very well.

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

    Additionally, I’d give these threads and posts a look if you’re interested in adding breadcrumbs:

    Breadcrumbs for Publii: https://cv.domagic.site/posts/breadcrumbs-for-publii

    Breadcrumb and multilanguage: https://forum.getpublii.com/topic/breadcrumb-and-multilanguage/

    I had not heard anything about breadcrumbs.

    Is it a kind of navbar? Or are you telling google that your html layout is like this? Sorry for my ignorance.

    #9320
    Avatar photo[anonymous]

    Sorry for missing your reply!

    Breadcrumbs can be both a navbar (appearance-wise with HTML and CSS), and json-ld to tell Google the structure.