Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Views page error message **/
- SQLSTATE[42S22]: Column not found: 1054 Unknown column 'draggableviews_structure.entity_id' in 'on clause'
- /** Views error without JavaScript **/
- Warning: Invalid argument supplied for foreach() in views_plugin_display->uses_exposed() (line 275 of /var/www/php/drupal7/sites/all/modules/views/plugins/views_plugin_display.inc).
- /** Watchdog **/
- | 2828
- | 1
- | php
- | %type: !message in %function (line %line of %file).
- | a:6:{s:5:"%type";s:7:"Warning";s:8:"!message";s:39:"Invalid argument supplied for foreach()";s:9:"%function";s:36:"views_plugin_display->uses_exposed()";s:5:"%file";s:77:"/var/www/php/drupal7/sites/all/modules/views/plugins/views_plugin_display.inc";s:5:"%line";i:273;s:14:"severity_level";i:4;}
- | 4
- |
- | http://pizzeriamondo.local/admin/structure/views/ajax/config-item/drag/page/sort/weight
- | http://pizzeriamondo.local/admin/structure/views/view/drag/edit/page
- | 127.0.0.1
- | 1332633823
- |
- /** mysqldump (both tables are empty)**/
- --
- -- Table structure for table `drupal7_draggableviews_collapsed`
- --
- DROP TABLE IF EXISTS `drupal7_draggableviews_collapsed`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `drupal7_draggableviews_collapsed` (
- `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The user.',
- `parent_nid` int(10) unsigned NOT NULL COMMENT 'The parent node.',
- `view_name` varchar(32) NOT NULL DEFAULT '' COMMENT 'The view id.',
- `collapsed` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The state.',
- PRIMARY KEY (`uid`,`parent_nid`,`view_name`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The table that knows whether sub-lists are collapsed or...';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `drupal7_draggableviews_structure`
- --
- DROP TABLE IF EXISTS `drupal7_draggableviews_structure`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `drupal7_draggableviews_structure` (
- `view_name` varchar(32) NOT NULL DEFAULT '' COMMENT 'Makes the order unique for each view.',
- `nid` int(10) unsigned NOT NULL COMMENT 'The node id.',
- `delta` int(10) unsigned NOT NULL COMMENT 'Makes the order unique for each level.',
- `args` varchar(255) NOT NULL DEFAULT '' COMMENT 'Makes the order unique for a given set of arguments',
- `value` int(11) NOT NULL DEFAULT '0' COMMENT 'The value.',
- PRIMARY KEY (`nid`,`view_name`,`delta`,`args`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The table saves the order settings of an draggableview.';
- /*!40101 SET character_set_client = @saved_cs_client */;
- /** Views export **/
- $view = new view;
- $view->name = 'draggable_test';
- [...]
- $view->core = 7;
- $view->api_version = '3.0-alpha1';
- $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
- /* Display: Master */
- [...]
- $handler->display->display_options['style_options']['columns'] = array(
- 'title' => 'title',
- 'draggableviews' => 'draggableviews',
- 'body' => 'body',
- );
- [...]
- /* Field: Content: Title */
- /* Field: Content: Draggable views */
- $handler->display->display_options['fields']['draggableviews']['id'] = 'draggableviews';
- $handler->display->display_options['fields']['draggableviews']['table'] = 'node';
- $handler->display->display_options['fields']['draggableviews']['field'] = 'draggableviews';
- $handler->display->display_options['fields']['draggableviews']['label'] = 'Drag';
- $handler->display->display_options['fields']['draggableviews']['element_label_colon'] = 0;
- $handler->display->display_options['fields']['draggableviews']['element_default_classes'] = 0;
- $handler->display->display_options['fields']['draggableviews']['hide_empty'] = 0;
- $handler->display->display_options['fields']['draggableviews']['empty_zero'] = 0;
- $handler->display->display_options['fields']['draggableviews']['hide_alter_empty'] = 0;
- $handler->display->display_options['fields']['draggableviews']['draggableviews']['ajax'] = 0;
- /* Field: Content: Body */
- [...]
- /* Sort criterion: Content: Draggable views weight */
- $handler->display->display_options['sorts']['weight']['id'] = 'weight';
- $handler->display->display_options['sorts']['weight']['table'] = 'draggableviews_structure';
- $handler->display->display_options['sorts']['weight']['field'] = 'weight';
- $handler->display->display_options['sorts']['weight']['draggableviews_setting_view'] = 'our_menu:end_user';
- $handler->display->display_options['sorts']['weight']['draggableviews_setting_new_items_bottom_list'] = 1;
- /* Filter criterion: Content: Published */
- [...]
- /* Filter criterion: Content: Type */
- [...]
- /* Display: Page */
- $handler = $view->new_display('page', 'Page', 'page');
- $handler->display->display_options['path'] = 'draggable-test';
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement