Not sure I have it configured correctly....

emdalton - May 31, 2007 - 20:54
Project:Audit your content
Version:5.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I had trouble understanding the documentation, but here's what I've done so far:

- Installed nodequeue (views was already installed)
- Created an "audit process" node
- Created three node queues:
Audit #590: Done
Audit #590: In-process
Audit #590: Saved for later
- Created one view. I really wasn't sure what this view was supposed to do, so I had it only include pages, and exclude any pages in the previously defined node queues. It wasn't clear if page view or block view were supposed to be generated, what fields were supposed to be included, or what format to use. (export follows):

$view = new stdClass();
  $view->name = 'audit_590_unprocessed';
  $view->description = 'for auditing pages';
  $view->access = array (
  0 => '4',
  1 => '3',
);
  $view->view_args_php = '';
  $view->sort = array (
  );
  $view->argument = array (
  );
  $view->field = array (
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'page',
),
    ),
    array (
      'tablename' => 'nodequeue_nodes',
      'field' => 'qid',
      'operator' => 'NOR',
      'options' => '',
      'value' => array (
  0 => '1',
  1 => '2',
  2 => '3',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, nodequeue_nodes);
  $views[$view->name] = $view;

When I return to the audit process page, I get:

warning: implode() [function.implode]: Bad arguments. in /var/www/html/users/wsbe/sites/all/modules/views/views.module(538) : eval()'d code on line 10.
Submitted by admin on Wed, 05/30/2007 - 2:29pm.
158 (100%) Not done
0 (0%) In-process
0 (0%) Done
0 (0%) Saved for later

I do have TinyMCE installed. My users need it. Is this causing the problem? If so, I can't use this module.

Thanks

#1

csc4 - June 13, 2007 - 15:08

I have a similar problem - not the same error but confusion about what the view is supposed to contain, whether it is supposed to be a page view, a block view, both or neither.

Does any kind soul have a working view they could export and share?

I tried to watch the video but my browser says it can't view it as it needs something which isn't contained on the server.

Also - the incompatible with TinyMCE has me worried too - what does it mean practically?

#2

yngens - September 10, 2007 - 20:10

I also support a request to give an example of view query. Where should 'Start auditing' should go? It opens one of the nodes of node type that I defined to audit, and I am stuck there. Because, I think my views are configured not in right way.

#3

jiangxijay - October 22, 2007 - 18:35

I agree ... the read-me instructions say nothing about configuring the view.

Since this has been outstanding for months, with no response, I am going to send a request to the developer ...

#4

njivy - October 23, 2007 - 16:51

Neither page- nor block-modes are necessary, but neither will they hurt.

Here's the view I used:

  $view = new stdClass();
  $view->name = 'audit_2552_unprocessed';
  $view->description = '';
  $view->access = array (
  0 => '3',
);
  $view->view_args_php = '';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'sortorder' => 'ASC',
      'options' => '',
    ),
    array (
      'tablename' => 'node',
      'field' => 'nid',
      'sortorder' => 'ASC',
      'options' => '',
    ),
  );
  $view->argument = array (
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'nodequeue_nodes',
      'field' => 'qid',
      'operator' => 'NOR',
      'options' => '',
      'value' => array (
  0 => '2',
  1 => '3',
  2 => '4',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, nodequeue_nodes);
  $views[$view->name] = $view;

I'm not sure why views.module reports an error. The code above works with version 1.166.2.6 of views.

 
 

Drupal is a registered trademark of Dries Buytaert.