Recursive field traversal in Drupal

Categories Drupal

So say you have to build a custom sitemap for a Drupal 7 site that makes heavy use of Field Collections, and you need to recursively extract every item of a certain field type on a DíA” single entity for the sitemap. Oh, and you need to wholesale mlb jerseys be able to selectively transform some items in the process.

Yep, you guessed it – I’ve run across this one before. We had a series of content types + that used heavily-nested field collections and a custom rebooted! sitemap requirement for the images that good ol’ XML Sitemap just wouldn’t accommodate. So we built one.  🙂  Note wholesale nfl jerseys that this one was geared toward grabbing images and altering the Brightcove module’s thumbnails to conform to our sitemap code’s requirements.