True way or not true way?
|
3 posts
|
In one of my project i was need collect all elements of site tree without childs (“leafs”) for further operations (for example random output in main page). I’m modify function from Frog CMS documentation (snippet Sitemap):
And use it like this:
I have one question. It’s “true way”? :) Or having some another methods of solution this task? My doubts consist in second call of find() function, which placed in foreach. Thank you! And sorry for bad English :) |