I need to write a module that gives me a page will all possible paths in a drupal install, including orphaned pages. (site map won’t work for that).
I can query the url_alias table for aliases, and I can query the menu_router table for all paths, even ones set in page/feed displays in views. But, variable paths (those with arguments) get interpreted at run-time.
So, is there a way to get all possible paths in a drupal install, including dynamic paths and orphans? It’s catch22. I have to know all the urls ahead of time to get them.
So, you can definitely get all possible paths in drupal by querying the
url_aliastable (that gives you all aliases), and menu_router, which will in addition give you paths set by page or feed displays. The problem remains that you cannot fill in the variables in variable paths in themenu_routertable. You have to know in each case what the variables could be, since Drupal fills them in at runtime.So my problem is a catch22. You have to somehow visit all the paths to get them, but you can’t programatically visit them (or crawl them) unless you know what they are in advance.