Hot answers tagged

2

As I understand it, this is impossible with just the views module by itself. You can easily filter for nodes that the user has commented on, but filtering for nodes the user hasn't commented on is difficult for reasons I'll go into later, so you're going to have to install additional modules or write your own code. First of all, to get the nodes the user ...


2

You find the field handlers you have configured in the Fields list in $view->field. A field handler has methods like getValue(), render() and advancedRender(), which accept as argument the row variable: Example: $view = $variables['view']; $rows = $variables['rows']; foreach ($rows as $id => $row) { $field_value = $view->field['field_name']->...


1

The content page is actual just a view. You can just edit it to make it do what you want to. This is set up via the initial site creation so you will not loose your changes when core is updated.


1

I wouldn't use Fields setting for this case. Try to override template for specific content type and set your view to display your content type in specific 'view mode' for example teaser. In your view change 'Format' to 'unformated list' and change 'Show' setting to 'teaser' for example. This will display your content type in specific view mode, so now you ...


Only top voted, non community-wiki answers of a minimum length are eligible