Looking for a snippet(piece of code) to search for unused templates chunks TVs.
Thx
-
☆ A M B ☆
- 24,524 Posts
That would be a tough one. How would you deal with chunks that are called via a TV with @CHUNK? Or snippets that are called via another snippet with $modx->runSnippet? It would require parsing through every chunk, TV, snippet and plugin looking for this kind of thing. And that would include included .php files for said snippets and plugins. I suppose it’s possible, but just the thought of it makes my stomach hurt.
Yeah, I thought so
I guess it can easily be done for templates but not for chunks and TVs. I’m probably better cleaning everything myself.
Thx