Is there a way to create posts automatically inside subfolders?
-
October 18, 2022 at 10:50 pm #8583[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?
October 19, 2022 at 12:30 am #8584[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!!
October 22, 2022 at 3:37 am #8602[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/
November 8, 2022 at 12:53 am #8664[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.htmlThe 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.
November 8, 2022 at 12:56 am #8665[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.
February 10, 2023 at 10:20 pm #9320[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.