Asset CCK field doesn't work in views "List View" type

jgerrish - April 25, 2008 - 19:12
Project:Asset
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Adding an asset CCK field with an imagecache formatter doesn't work when the type of view is set to List View. Setting the view type to Teaser or Full Nodes works fine.

Drupal version: 5.6

#1

jgerrish - April 26, 2008 - 23:25

I found the issue. I was adding a general asset field, and not the custom field that was added to the content type.

The only problem with this is that I cannot specify a different formatter for the view in the Options select box. Any way this could be added?

#2

Schneck - May 23, 2008 - 16:50

I reported the same bug a few days ago; this issue is really important for me and i think for others too. wim, i can image you've got a lot of work to do and this problem is not on the top of your list ;) , so can you give me a hint where i can find the problematic code part? maybe it's not so difficult and i or somebody else can find a solution.

thanks,
stefan

#3

wmostrey - August 11, 2008 - 08:42
Version:5.x-1.0-beta1» 5.x-1.x-dev
Category:bug report» feature request

I'll see if I can add more options to the views options box.

#4

mxgfx - August 28, 2008 - 18:08

subscribing. I desperately need this to work.
So, I'll check out the code and see if there's an easy fix in the meantime.
If I get it working, I'll be sure to post the temp solution.

#5

HansBKK - October 5, 2008 - 13:44

+1

Same with table view

Related: http://drupal.org/node/286919, http://drupal.org/node/245636

Would be ideal if the preset could be selected as an option in creating the View. Or if this is really hard, how about:

providing a formatter default option for list and table Views separate from Teaser mode

note - it took a while to take effect, but I BELIEVE this worked:

change the formatter's default for teaser mode also changed the list/table view. I used CSS to move/hide the paragraphs containing the description/copyright information, which IMO shouldn't show up in list/table views, or should be an option.

Another (klunkier) way to go would be to allow us to choose a specific preset to reference in the CCK field (which would be a great feature for lots of other reasons, in fact IMO more critical than Views support) then a workaround would be creating a specific field to use for a given View.

I would say that until this functionality is in place Asset doesn't fully support Views+Imagecache. But of course THANKS for all your work Wim, this is such an ambitious project, I wish I was a coder so I could help move things along! In the meantime I'll try to help by clarifying and consolidating issues like this, documentation etc.

update - I see some threads about Lightbox (which I haven't started looking at yet) - is this an interim workaround for being able spec a preset for a table/list/grid view?

#6

pribeh - January 29, 2009 - 20:00

Hey Yall,

I've checked out the other threads (http://drupal.org/node/208027 and http://drupal.org/node/238544) but for the life of me can't figure out which solves this issue the best.

I think what everyone is looking for is the ability to select an "asset_yourfield" (for each cck field you create) in views that allows for a handler (of values) and options (for imagecache presets) like shown here: http://drupal.org/files/issues/imagecache_asset_view.JPG.

true-pal apparently got this going with a patch against an older version of Asset. Can anyone confirm if this works for a more recent version? or if they got the normal "Asset" field (which provides a handler and options) to work in a "list" view?

#7

pribeh - February 2, 2009 - 03:11

Ok, so I tried true-pal's patch to the latest version of asset with no luck. Looking at both the patch and the asset module I tried to make changes but my php skills are simply not up to par and was left with many a blank browser screen.

 
 

Drupal is a registered trademark of Dries Buytaert.