Jump to content

Finding all images in pages, repeaters and pagetables to rename them


Asdiff
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...