Asdiff Posted October 26, 2015 Share Posted October 26, 2015 Thank you for the help LostKobrakai! Link to comment Share on other sites More sharing options...
LostKobrakai Posted October 26, 2015 Share Posted October 26, 2015 Even repeaters and page-tables just create real pages, so there shouldn't be the need to differentiate between those. I've not much time to look into your code, but I wouldn't search those images by pages, but rather check the list of fields ($fields api variable) for all image fields you have in your installation. Those fields can give you all templates they are used on and with those templates you can find all pages, with an image field on. Just keep things like pagination and timeouts in mind here, as the number of pages you can load on one request is limited. One improvement to this issue could be not loading the whole pages data, but using direct sql queries to just select the image-fields rows and working with them if you don't need other related data from those pages. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now