2023-02-21, 03:57:43
(2023-02-21, 03:35:43)tuxy Wrote:(2023-02-21, 02:56:57)tuxy Wrote:(2023-02-21, 02:26:33)mvlcek Wrote: The I18N plugin allows youSee http://mvlcek.bplaced.net/get-simple/i18n
- to hierarchically organize the pages
- to show all parents in the URL with %parents%/%slug%
Keep in mind that the slugs still have to be unique and that the parents (sent by the user/browser) are not checked when showing a page.
Hi mvlcek,
Okay, thats awesome, i will try it
Hmm, try it but i do something wrong i think.
Adding this to the settings:
%parents%/%slug%/
Thats the hierarchical structure (screenshot)
This is the result:
https://gs.dogvalley.be/aartselaar/de-reukens
It missed the grandparents(s),
normal it would be:
https://gs.dogvalley.be/provincie/antwerpen/aartselaar/de-reukens
or
https://gs.dogvalley.be/provincie/limburg/lommel/kattebos/
So it missed the grandparents in the urls /provincie/antwerpen/.. or /provincie/limburg/..
When adding manual the url, it works. Is there a way showing the grandparents in the url by default? Or would be edit in in the htaccess?
You need to use the i18n functions in the template (see http://mvlcek.bplaced.net/get-simple/i18n, installation):
- get_i18n_breadcrumbs
- get_i18n_navigation
- get_i18n_header
- etc.