Francesco Pellerone
TCTwill CMS
•Created by Francesco Pellerone on 6/25/2024 in #👊support
Missing docs for translated nested modules
i had problems with translated nested slugs:
even if they work as intended the child will always take the parent component in the default language in the slug.
After a lot of fiddling and reverse enginnering i came with a solution:
https://twillcms.com/docs/modules/nested-modules.html#content-working-with-self-nested-items
Original code:
This code will only return the parent slug in only one language so it does NOT work as intended; to fix it we need to implement the
getLocalizedPermalinkBase()
function that does not have an item.
To fix it i came with this solution:
If you have a more elegant solution or wnat to update the documentation please do so.2 replies
TCTwill CMS
•Created by Francesco Pellerone on 5/16/2024 in #👊support
Creating a front-end for parent-child nested module
Hello, i need help with the frontend controller for a Parent-child modules:
i want to create articles in categories, i have successfully created Category and CategoryArticle classes like in the documentation but i cannot make the page routing work
web.php
CategoryArticleDisplayController.php
2 replies