Hey people,
I think having the option to hide folders from URL’s is an obvious, reasonable and desirable situation.
I picked up on a thread, also talking about it but this one has more life so will repeat my thoughts here and link that one in.
In a site map you would want to show :
Articles
-----Category
------------Article 1
------------Article 2
------------Article 3
Even in the document tree, in the manager, it is nice to group things this way.
However in a lot of instances this is a repetition within the URL, for eg.
domain.com/portfolio/sector_type/technology
Well technology is a sector type and frankly this type of tautology has no place on the modern interweb...
I have done some initial investigation and have made a change to getParents() in cache_sync.class.processor.php. Basically if any parent has a particular template variable (represented by the constant URL_HIDE_TMPLVARS_ID) set, it is excluded from being included into the path and written into the cache file.
Thing is, this is not the only place this file gets written, if I go and change a template for example when I save it the infiltrator is back.
One of the nice things about ModX is every time I have had a look at the code base to make a change, or extension, there has been a really obvious place to insert my code. Does anyone who has a knowledge of the caching system have any input for me on this one?
Thanks.