I have installed the 4.x-dev version after following a previous thread about views integration.

I have an image multifield with a tick box as an extended field, the idea being users tick it to select that image to go on the front page.

For this I was planning to filter via views - filter out those not ticked, but no 'filefield/image - data' options come up under Filters or Sort in Views, only delta.

Is this possible, or is there another way to do this?

Many thanks.

Comments

YK85’s picture

subscribing

alan d.’s picture

Currently, filefield data info does not support view filters. And with Drupal 7 being released, I'm not sure how much development will be done on the older version.

I've done a similar thing manually, but it is not that efficient. I promote pages to the front page, and then parse the imagefield values to manually pull out the first one that has the required checkbox. I parse the image via the node.tpl.php teaser view (globally applied)

I guess that this can be done using views and overriding the view template to parse the images. I'm personally haven't had much to do with views to be able to give quick help.

The logic is

node_load()
foreach ($node->field_images) {
  if (selected) {
    theme / print image
    break
  }
}

Maybe reopen #735512: Views filefield-data should not be hard-coded or create a new issue if you want to see if quicksketch is willing to support this.

istryker’s picture

I think this is a huge feature. There is a lot of people that would like this functionality. They want a gallery of 'featured' images. They want a view showing 'Album Cover' images.

Exploratus’s picture

I agree. This is huge!

bartezz’s picture

Yep... not much use for this data if it can't be used. +1

Cheers

szy’s picture

That's exactly the feature I would need too.

Have you got any solution for it, to be used with Imagefield Extended?

Thanks.

Szy.

alan d.’s picture

Issue summary: View changes
Status: Active » Closed (outdated)