Hi there..
for a module i want to create based on CCK and views, i need to select all nodes which have a certain fieldgroup defined for the view. I tried to add a stub at the end of content_views_data in content.views.inc
$data['content_type']['table']['group'] = t('Content');
$data['content_type']['has_field'] = array(
'title' => t('Type has field'),
'help' => t('Fields the content type has.'),
'filter' => array(
'handler' => 'views_handler_filter_content_type_has_field',
),
);
but it is not even shown in the filter section, i think because there's no valid table information defined. Problem is, the information which fields are defined for which content type are not simply stored in a table.. i do not quite grok this views framework so after several hours digging through the source getting my mind all fuzzy i decided to ask for support here.. could you give me some helpful hints or so? regards!
Comments
Comment #1
eMPee584 commented(oooh evilish strong tag what have i dooone *g)
Comment #2
karens commentedThe best solution might be for the fieldgroup module to expose its own filter for the group name, which would be a feature request. An argument would also make sense, maybe a sort, maybe even a field for the fieldgroup name. But someone would need to sit down and figure out the right way to do this since it is not an ordinary field.