Views 3中的“高级模式”是什么?


15

本文中,第一条说明是

在每个站点上,运行drush vd以将“视图”设置转换为高级模式。

这是什么意思?用Google搜索“ Views Advanced Mode”(视图高级模式)时,产生的大部分只是指向本文的链接。什么是“高级模式”?

Answers:


15

高级模式意味着

将“视图”设置设置为更多面向开发人员的值。

您可以在视图模块Drush文件夹views.drush.inc文件中检查其定义。

  $items['views-dev'] = array(
    'callback' => 'views_development_settings',
    'drupal dependencies' => array('views'),
    'description' => 'Set the Views settings to more developer-oriented values.',
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'aliases' => array('vd'),
  );

执行drush vd命令后,将设置以下变量。

  variable_set('views_ui_show_listing_filters', TRUE);
  variable_set('views_ui_show_master_display', TRUE);
  variable_set('views_ui_show_advanced_column', TRUE);
  variable_set('views_ui_always_live_preview', FALSE);
  variable_set('views_ui_always_live_preview_button', TRUE);
  variable_set('views_ui_show_preview_information', TRUE);
  variable_set('views_ui_show_sql_query', TRUE);
  variable_set('views_ui_show_performance_statistics', TRUE);
  variable_set('views_show_additional_queries', TRUE);
  variable_set('views_devel_output', TRUE);
  variable_set('views_devel_region', 'message');
  variable_set('views_ui_display_embed', TRUE);
  $message = dt("Setup the new views settings.");
  drush_log($message, 'success');

您也可以通过使用drush命令来导航到“ admin / structure / views / settings”

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.