Ok,
Basically all I want to do is get an array of all the pages on the site and then run through a for loop to create an ordered list where I can change the class based on the current page id.
Sounds simple, but I’ve been looking through the documentation and can’t figure out an easy way to grab the list of pages. I can get the documentID no problem. Is there an easy way to do this that I’m missing?
Normally if I was writing something for myself I would just query the DB with something like (Select * From Pages Where Visible=true) which would return an array of active pages. Does MODx have anything like this?
I’d appreciate the help! Thanks,
Drezden
-
☆ A M B ☆
- 24,524 Posts
Wayfinder. I strongly recommend spending some time with the docs you can download from this page.