modx-ccc-2015 / whishlist

The overall repository with MODX issues to tackle together at the MODX CCC 2015. This place is ment to be as a big pond of possibilies.
0 stars 0 forks source link

Allow "structure-folders/-documents" in FURL-generation #21

Open JensWolff opened 9 years ago

JensWolff commented 9 years ago

Sometimes it is necessary to use modx-resources as "structure-folders" for example for navigation-generation. As example, we want to build a custom footer-navigation, which should be reordered via the MODX Resource-Tree. So you create a new resource "Footer-Navigation" and put all the Ressources that should be displayed in that navigation as childs to display them f.ex. with wayfinder. That works - but the friendly urls that gets generated are very ugly: /footer-navigation/impress or /footer-navigation/contact

You could fix that by setting manually a fixed URL and clear it for all these ressources, that are childs of "footer-navigation", but this is not the best way to do it, because you always have to remember to manually fix them.

A better way would be, if you can check a checkbox (like "do not show in menu") like "hide in furl-generation". If this checkbox gets checked, the MODX FURL-generator ignores "footer-navigation" completely, so you get the following FURLS automaticly generated:

/impress /contact

if you uncheck it, it will becomes again: /footer-navigation/impress /footer-navigation/contact

wuuti commented 9 years ago

Is this not covered by the "use_alias_path" setting? If this is set to false (default), then the structure folder won't be part of the url?

JensWolff commented 9 years ago

@inreti Yes, if you don't need any subfolders, then thats the right way to do it. But I generally want MODX to use_alias_path to create FURLS like news/news-article and so on. But I have some "folders" (=resources) that are just used for construction and sorting, but these should not be visible in the generated FURLs.

rtripault commented 9 years ago

Just to note there is discussion (and PoC) about this on https://github.com/modxcms/revolution/issues/11153

gpsietzema commented 9 years ago

+1

Also this PR: https://github.com/modxcms/revolution/pull/11167