I need generate menu with categories like this: - Main category 1 --- Sub category 1 --- Sub category 2 --- --- Sub sub category 1 - Main category 2
and for all of these items I need their hierarchical url, such for "Sub sub category 1" it will be /Main category 1/Sub category 1/Sub sub category 1. I read that it is possible by path() but I need get from database my url field instead of "title"