There's another page about more general [[Insight customizations to Drupal]].

There's another page about more general [[Insight customizations to Drupal]].

+

+

== Content types ==

+

+

=== FWN beat ===

+

Here is the current fwn beat content type, click "import" on admin/content/types/ to import this type.

+

<pre>

+

$content['type'] = array (

+

'name' => 'Weekly news beat',

+

'type' => 'fwnbeat',

+

'description' => 'A single "beat" or topical area in the Fedora Weekly News',

+

'title_label' => 'Title',

+

'body_label' => 'Body',

+

'min_word_count' => '0',

+

'help' => '',

+

'node_options' =>

+

array (

+

'status' => false,

+

'promote' => false,

+

'sticky' => false,

+

'revision' => false,

+

),

+

'language_content_type' => '0',

+

'old_type' => 'fwnbeat',

+

'orig_type' => '',

+

'module' => 'node',

+

'custom' => '1',

+

'modified' => '1',

+

'locked' => '0',

+

'comment' => '2',

+

'comment_default_mode' => '4',

+

'comment_default_order' => '1',

+

'comment_default_per_page' => '50',

+

'comment_controls' => '3',

+

'comment_anonymous' => 0,

+

'comment_subject_field' => '1',

+

'comment_preview' => '1',

+

'comment_form_location' => '0',

+

'ant' => '1',

+

'ant_pattern' => '[field_issue-raw]-[field_beat-raw]',

+

'auto_nodetitle_php' => 0,

+

'i18n_newnode_current' => 0,

+

'i18n_required_node' => 0,

+

'i18n_lock_node' => 0,

+

'i18n_node' => 1,

+

'i18nsync_nodeapi' =>

+

array (

+

'name' => false,

+

'status' => false,

+

'promote' => false,

+

'moderate' => false,

+

'sticky' => false,

+

'revision' => false,

+

'parent' => false,

+

'taxonomy' => false,

+

'comment' => false,

+

'field_issue' => false,

+

'field_beat' => false,

+

),

+

);

+

$content['fields'] = array (

+

0 =>

+

array (

+

'label' => 'Issue',

+

'field_name' => 'field_issue',

+

'type' => 'number_integer',

+

'widget_type' => 'number',

+

'change' => 'Change basic information',

+

'weight' => '5',

+

'description' => '',

+

'default_value' =>

+

array (

+

0 =>

+

array (

+

'value' => '',

+

'_error_element' => 'default_value_widget][field_issue][0][value',

+

),

+

),

+

'default_value_php' => '',

+

'default_value_widget' => NULL,

+

'group' => false,

+

'required' => 1,

+

'multiple' => '0',

+

'min' => '',

+

'max' => '',

+

'prefix' => '',

+

'suffix' => '',

+

'allowed_values' => '',

+

'op' => 'Save field settings',

+

'module' => 'number',

+

'widget_module' => 'number',

+

'columns' =>

+

array (

+

'value' =>

+

array (

+

'type' => 'int',

+

'not null' => false,

+

'sortable' => true,

+

),

+

),

+

'display_settings' =>

+

array (

+

'weight' => '5',

+

'parent' => '',

+

'label' =>

+

array (

+

'format' => 'hidden',

+

),

+

'teaser' =>

+

array (

+

'format' => 'hidden',

+

'exclude' => 0,

+

),

+

'full' =>

+

array (

+

'format' => 'hidden',

+

'exclude' => 0,

+

),

+

5 =>

+

array (

+

'format' => 'default',

+

'exclude' => 0,

+

),

+

4 =>

+

array (

+

'format' => 'default',

+

'exclude' => 0,

+

),

+

),

+

),

+

1 =>

+

array (

+

'label' => 'Beat',

+

'field_name' => 'field_beat',

+

'type' => 'text',

+

'widget_type' => 'optionwidgets_select',

+

'change' => 'Change basic information',

+

'weight' => '6',

+

'description' => '',

+

'default_value' =>

+

array (

+

0 =>

+

array (

+

'value' => '',

+

),

+

),

+

'default_value_php' => '',

+

'default_value_widget' =>

+

array (

+

'field_beat' =>

+

array (

+

'value' => '',

+

),

+

),

+

'group' => false,

+

'required' => 1,

+

'multiple' => '0',

+

'text_processing' => '0',

+

'max_length' => '',

+

'allowed_values' => 'Introduction

+

Announcements

+

Planet Fedora

+

Fedora In The News

+

Ambassadors

+

Quality Assurance

+

Marketing

+

Design

+

Translation

+

Security Advisories

+

KDE',

+

'op' => 'Save field settings',

+

'module' => 'text',

+

'widget_module' => 'optionwidgets',

+

'columns' =>

+

array (

+

'value' =>

+

array (

+

'type' => 'text',

+

'size' => 'big',

+

'not null' => false,

+

'sortable' => true,

+

'views' => true,

+

),

+

),

+

'display_settings' =>

+

array (

+

'weight' => '6',

+

'parent' => '',

+

'label' =>

+

array (

+

'format' => 'hidden',

+

),

+

'teaser' =>

+

array (

+

'format' => 'hidden',

+

'exclude' => 0,

+

),

+

'full' =>

+

array (

+

'format' => 'hidden',

+

'exclude' => 0,

+

),

+

5 =>

+

array (

+

'format' => 'default',

+

'exclude' => 0,

+

),

+

4 =>

+

array (

+

'format' => 'default',

+

'exclude' => 0,

+

),

+

),

+

),

+

);

+

$content['extra'] = array (

+

'title' => '16',

+

'body_field' => '8',

+

'revision_information' => '11',

+

'author' => '10',

+

'options' => '12',

+

'comment_settings' => '13',

+

'menu' => '7',

+

'book' => '9',

+

);

+

</pre>

== Taxonomy ==

== Taxonomy ==

Line 19:

Line 244:

Here is the current content of the specific filter for the Fedora wiki, in serialized form from the filter's Export function:

Here is the current content of the specific filter for the Fedora wiki, in serialized form from the filter's Export function:

<pre>

<pre>

−

a:9:{s:5:"label";s:23:"Fedora Mediawiki Format";s:11:"description";s:134:"This filter provides an input format for the Fedora wiki. Use this if you are pasting or writing content that uses Fedora wiki markup.";s:2:"id";s:1:"3";s:7:"enabled";b:1;s:8:"advanced";b:1;s:5:"delta";s:1:"1";s:5:"cache";s:1:"1";s:10:"components";a:10:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:9:"</nowiki>";s:4:"step";s:7:"process";}s:2:"id";s:2:"31";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:8:"<nowiki>";s:4:"step";s:7:"process";}s:2:"id";s:2:"32";}i:2;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:5:"<ref>";s:4:"ends";s:6:"</ref>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:2:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:4:"[fn]";s:4:"step";s:7:"process";}s:2:"id";s:2:"34";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:5:"[/fn]";s:4:"step";s:7:"process";}s:2:"id";s:2:"35";}}}s:2:"id";s:2:"33";}i:3;a:3:{s:5:"class";s:42:"flexifilter_existing__footnotes__filter__0";s:8:"settings";a:0:{}s:2:"id";s:2:"36";}i:4;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:9:"</nowiki>";s:4:"ends";s:8:"<nowiki>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:7:{i:0;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:5:"=====";s:7:"replace";s:11:"<h5>

+

a:9:{s:5:"label";s:23:"Fedora Mediawiki Format";s:11:"description";s:134:"This filter provides an input format for the Fedora wiki. Use this if you are pasting or writing content that uses Fedora wiki markup.";s:2:"id";s:1:"3";s:7:"enabled";b:1;s:8:"advanced";b:1;s:5:"delta";s:1:"1";s:5:"cache";s:1:"1";s:10:"components";a:10:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:9:"</nowiki>";s:4:"step";s:7:"process";}s:2:"id";s:2:"31";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:8:"<nowiki>";s:4:"step";s:7:"process";}s:2:"id";s:2:"32";}i:2;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:5:"<ref>";s:4:"ends";s:6:"</ref>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:2:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:4:"[fn]";s:4:"step";s:7:"process";}s:2:"id";s:2:"34";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:5:"[/fn]";s:4:"step";s:7:"process";}s:2:"id";s:2:"35";}}}s:2:"id";s:2:"33";}i:3;a:3:{s:5:"class";s:42:"flexifilter_existing__footnotes__filter__0";s:8:"settings";a:0:{}s:2:"id";s:2:"36";}i:4;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:9:"</nowiki>";s:4:"ends";s:8:"<nowiki>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:8:{i:0;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:5:"=====";s:7:"replace";s:11:"<h5>

Here is the current FWN view. Click "import" on admin/build/views to import this view.

+

+

<pre>

+

$view = new view;

+

$view->name = 'fwn';

+

$view->description = '';

+

$view->tag = '';

+

$view->view_php = '';

+

$view->base_table = 'node';

+

$view->is_cacheable = FALSE;

+

$view->api_version = 2;

+

$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

+

$handler = $view->new_display('default', 'Defaults', 'default');

+

$handler->override_option('fields', array(

+

'body' => array(

+

'label' => '',

+

'alter' => array(

+

'alter_text' => 0,

+

'text' => '',

+

'make_link' => 0,

+

'path' => '',

+

'link_class' => '',

+

'alt' => '',

+

'prefix' => '',

+

'suffix' => '',

+

'target' => '',

+

'help' => '',

+

'trim' => 0,

+

'max_length' => '',

+

'word_boundary' => 1,

+

'ellipsis' => 1,

+

'html' => 0,

+

'strip_tags' => 0,

+

),

+

'empty' => '',

+

'hide_empty' => 0,

+

'empty_zero' => 0,

+

'exclude' => 0,

+

'id' => 'body',

+

'table' => 'node_revisions',

+

'field' => 'body',

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('sorts', array(

+

'field_issue_value' => array(

+

'order' => 'ASC',

+

'delta' => -1,

+

'id' => 'field_issue_value',

+

'table' => 'node_data_field_issue',

+

'field' => 'field_issue_value',

+

'relationship' => 'none',

+

),

+

'created' => array(

+

'order' => 'ASC',

+

'granularity' => 'second',

+

'id' => 'created',

+

'table' => 'node',

+

'field' => 'created',

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('arguments', array(

+

'field_issue_value' => array(

+

'default_action' => 'summary desc',

+

'style_plugin' => 'default_summary',

+

'style_options' => array(

+

'count' => 0,

+

'override' => 0,

+

'items_per_page' => '25',

+

),

+

'wildcard' => 'all',

+

'wildcard_substitution' => 'All',

+

'title' => 'FWN %1',

+

'breadcrumb' => '',

+

'default_argument_type' => 'fixed',

+

'default_argument' => '',

+

'validate_type' => 'none',

+

'validate_fail' => 'not found',

+

'break_phrase' => 0,

+

'not' => 0,

+

'id' => 'field_issue_value',

+

'table' => 'node_data_field_issue',

+

'field' => 'field_issue_value',

+

'validate_user_argument_type' => 'uid',

+

'validate_user_roles' => array(

+

'2' => 0,

+

'3' => 0,

+

'5' => 0,

+

'7' => 0,

+

'6' => 0,

+

'4' => 0,

+

),

+

'override' => array(

+

'button' => 'Override',

+

),

+

'relationship' => 'none',

+

'default_options_div_prefix' => '',

+

'default_argument_fixed' => '',

+

'default_argument_user' => 0,

+

'default_argument_php' => '',

+

'validate_argument_node_type' => array(

+

'feed' => 0,

+

'feed_item' => 0,

+

'book' => 0,

+

'event' => 0,

+

'fwnbeat' => 0,

+

'page' => 0,

+

'story' => 0,

+

),

+

'validate_argument_node_access' => 0,

+

'validate_argument_nid_type' => 'nid',

+

'validate_argument_vocabulary' => array(

+

'1' => 0,

+

),

+

'validate_argument_type' => 'tid',

+

'validate_argument_transform' => 0,

+

'validate_user_restrict_roles' => 0,

+

'validate_argument_php' => '',

+

),

+

));

+

$handler->override_option('filters', array(

+

'type' => array(

+

'operator' => 'in',

+

'value' => array(

+

'fwnbeat' => 'fwnbeat',

+

),

+

'group' => '0',

+

'exposed' => FALSE,

+

'expose' => array(

+

'operator' => FALSE,

+

'label' => '',

+

),

+

'id' => 'type',

+

'table' => 'node',

+

'field' => 'type',

+

'relationship' => 'none',

+

'override' => array(

+

'button' => 'Override',

+

),

+

),

+

'status' => array(

+

'operator' => '=',

+

'value' => '1',

+

'group' => '0',

+

'exposed' => FALSE,

+

'expose' => array(

+

'operator' => FALSE,

+

'label' => '',

+

),

+

'id' => 'status',

+

'table' => 'node',

+

'field' => 'status',

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('access', array(

+

'type' => 'none',

+

));

+

$handler->override_option('cache', array(

+

'type' => 'time',

+

'results_lifespan' => '3600',

+

'output_lifespan' => '3600',

+

));

+

$handler->override_option('title', 'Fedora Weekly News');

+

$handler->override_option('header_format', '1');

+

$handler->override_option('header_empty', 0);

+

$handler->override_option('footer_format', '1');

+

$handler->override_option('footer_empty', 0);

+

$handler->override_option('distinct', 1);

+

$handler->override_option('style_plugin', 'grid');

+

$handler->override_option('style_options', array(

+

'grouping' => '',

+

'columns' => '1',

+

'alignment' => 'vertical',

+

'fill_single_line' => 1,

+

));

+

$handler = $view->new_display('page', 'Page', 'page_1');

+

$handler->override_option('css_class', 'fwn-combined');

+

$handler->override_option('header', 'Here are the latest issues of the [[Fedora Weekly News]] for your reading pleasure. For older issues, refer to the [[FWN/Archive|archive]].');

+

$handler->override_option('header_format', '4');

+

$handler->override_option('footer', 'The [[FWN|Fedora Weekly News]] is provided weekly by a staff of volunteers. Working with the friendly, helpful [[FWN]] staff is easy and it\'s a great place to start if you\'re a new contributor with about 60 minutes a week you can donate for this task. Stop by the [[FWN]] page on the wiki and get information on how to introduce yourself. You\'ll be helping innumerable other contributors keep on top of what\'s going on in Fedora, and spread project news around the globe.');

+

$handler->override_option('footer_format', '4');

+

$handler->override_option('path', 'fwn');

+

$handler->override_option('menu', array(

+

'type' => 'normal',

+

'title' => 'Fedora Weekly News',

+

'description' => '',

+

'weight' => '0',

+

'name' => 'primary-links',

+

));

+

$handler->override_option('tab_options', array(

+

'type' => 'none',

+

'title' => '',

+

'description' => '',

+

'weight' => 0,

+

'name' => 'navigation',

+

));

+

$handler = $view->new_display('block', 'Block', 'block_1');

+

$handler->override_option('block_description', '');

+

$handler->override_option('block_caching', -1);

+

</pre>

+

+

=== Feeds view ===

+

+

Here is the current Feeds view. Click "import" on admin/build/views to import this view.

+

<pre>

+

$view = new view;

+

$view->name = 'Feeds';

+

$view->description = 'Imported contents\' items.';

+

$view->tag = '';

+

$view->view_php = '';

+

$view->base_table = 'node';

+

$view->is_cacheable = FALSE;

+

$view->api_version = 2;

+

$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

+

$handler = $view->new_display('default', 'Defaults', 'default');

+

$handler->override_option('fields', array(

+

'title' => array(

+

'label' => '',

+

'alter' => array(

+

'alter_text' => 0,

+

'text' => '',

+

'make_link' => 0,

+

'path' => '',

+

'link_class' => '',

+

'alt' => '',

+

'prefix' => '',

+

'suffix' => '',

+

'target' => '',

+

'help' => '',

+

'trim' => 0,

+

'max_length' => '',

+

'word_boundary' => 1,

+

'ellipsis' => 1,

+

'html' => 0,

+

'strip_tags' => 0,

+

),

+

'empty' => '',

+

'hide_empty' => 0,

+

'empty_zero' => 0,

+

'link_to_node' => 1,

+

'exclude' => 0,

+

'id' => 'title',

+

'table' => 'node',

+

'field' => 'title',

+

'override' => array(

+

'button' => 'Override',

+

),

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('sorts', array(

+

'created' => array(

+

'order' => 'DESC',

+

'granularity' => 'second',

+

'id' => 'created',

+

'table' => 'node',

+

'field' => 'created',

+

'override' => array(

+

'button' => 'Override',

+

),

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('filters', array(

+

'status' => array(

+

'operator' => '=',

+

'value' => '1',

+

'group' => '0',

+

'exposed' => FALSE,

+

'expose' => array(

+

'operator' => FALSE,

+

'label' => '',

+

),

+

'id' => 'status',

+

'table' => 'node',

+

'field' => 'status',

+

'override' => array(

+

'button' => 'Override',

+

),

+

'relationship' => 'none',

+

),

+

'type' => array(

+

'operator' => 'in',

+

'value' => array(

+

'feed_item' => 'feed_item',

+

),

+

'group' => '0',

+

'exposed' => FALSE,

+

'expose' => array(

+

'operator' => FALSE,

+

'label' => '',

+

),

+

'id' => 'type',

+

'table' => 'node',

+

'field' => 'type',

+

'override' => array(

+

'button' => 'Override',

+

),

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('access', array(

+

'type' => 'none',

+

));

+

$handler->override_option('cache', array(

+

'type' => 'none',

+

));

+

$handler->override_option('title', 'Fedora Planet highlights');

+

$handler->override_option('items_per_page', 5);

+

$handler->override_option('style_options', array(

+

'grouping' => '',

+

));

+

$handler = $view->new_display('block', 'Block', 'block_1');

+

$handler->override_option('block_description', '');

+

$handler->override_option('block_caching', -1);

+

</pre>

+

+

+

=== FWN's beats view ===

+

+

Here is the current FWN's beats view. Click "import" on admin/build/views to import this view.

+

+

<pre>

+

$view = new view;

+

$view->name = 'fwn_beat';

+

$view->description = 'This is a view for a specific FWN beat by date';

+

$view->tag = '';

+

$view->view_php = '';

+

$view->base_table = 'node';

+

$view->is_cacheable = FALSE;

+

$view->api_version = 2;

+

$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

+

$handler = $view->new_display('default', 'Defaults', 'default');

+

$handler->override_option('fields', array(

+

'field_issue_value' => array(

+

'id' => 'field_issue_value',

+

'table' => 'node_data_field_issue',

+

'field' => 'field_issue_value',

+

),

+

'body' => array(

+

'id' => 'body',

+

'table' => 'node_revisions',

+

'field' => 'body',

+

),

+

));

+

$handler->override_option('sorts', array(

+

'field_issue_value' => array(

+

'order' => 'DESC',

+

'delta' => -1,

+

'id' => 'field_issue_value',

+

'table' => 'node_data_field_issue',

+

'field' => 'field_issue_value',

+

'relationship' => 'none',

+

'override' => array(

+

'button' => 'Override',

+

),

+

),

+

));

+

$handler->override_option('arguments', array(

+

'field_beat_value' => array(

+

'default_action' => 'summary asc',

+

'style_plugin' => 'default_summary',

+

'style_options' => array(

+

'count' => 0,

+

'override' => 0,

+

'items_per_page' => '25',

+

),

+

'wildcard' => 'all',

+

'wildcard_substitution' => 'All',

+

'title' => 'Recent news for FWN: %1',

+

'breadcrumb' => '',

+

'default_argument_type' => 'fixed',

+

'default_argument' => '',

+

'validate_type' => 'none',

+

'validate_fail' => 'not found',

+

'add_table' => 0,

+

'require_value' => 0,

+

'reduce_duplicates' => 1,

+

'id' => 'field_beat_value',

+

'table' => 'node_data_field_beat',

+

'field' => 'field_beat_value',

+

'validate_user_argument_type' => 'uid',

+

'validate_user_roles' => array(

+

'2' => 0,

+

'3' => 0,

+

'5' => 0,

+

'7' => 0,

+

'6' => 0,

+

'4' => 0,

+

),

+

'relationship' => 'none',

+

'default_options_div_prefix' => '',

+

'default_argument_fixed' => '',

+

'default_argument_user' => 0,

+

'default_argument_php' => '',

+

'validate_argument_node_type' => array(

+

'feed' => 0,

+

'feed_item' => 0,

+

'book' => 0,

+

'event' => 0,

+

'fwnbeat' => 0,

+

'page' => 0,

+

'story' => 0,

+

),

+

'validate_argument_node_access' => 0,

+

'validate_argument_nid_type' => 'nid',

+

'validate_argument_vocabulary' => array(

+

'1' => 0,

+

),

+

'validate_argument_type' => 'tid',

+

'validate_argument_transform' => 0,

+

'validate_user_restrict_roles' => 0,

+

'validate_argument_php' => '',

+

'override' => array(

+

'button' => 'Override',

+

),

+

),

+

));

+

$handler->override_option('filters', array(

+

'type' => array(

+

'operator' => 'in',

+

'value' => array(

+

'fwnbeat' => 'fwnbeat',

+

),

+

'group' => '0',

+

'exposed' => FALSE,

+

'expose' => array(

+

'operator' => FALSE,

+

'label' => '',

+

),

+

'id' => 'type',

+

'table' => 'node',

+

'field' => 'type',

+

'relationship' => 'none',

+

),

+

'status' => array(

+

'operator' => '=',

+

'value' => '1',

+

'group' => '0',

+

'exposed' => FALSE,

+

'expose' => array(

+

'operator' => FALSE,

+

'label' => '',

+

),

+

'id' => 'status',

+

'table' => 'node',

+

'field' => 'status',

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('access', array(

+

'type' => 'none',

+

));

+

$handler->override_option('cache', array(

+

'type' => 'time',

+

'results_lifespan' => '3600',

+

'output_lifespan' => '3600',

+

));

+

$handler->override_option('title', 'Insight: FWN\'s beat');

+

$handler->override_option('css_class', 'fwn-onebeat');

+

$handler->override_option('distinct', 0);

+

$handler->override_option('style_options', NULL);

+

$handler = $view->new_display('page', 'Page', 'page_1');

+

$handler->override_option('fields', array(

+

'field_issue_value' => array(

+

'label' => 'FWN issue',

+

'alter' => array(

+

'alter_text' => 0,

+

'text' => '',

+

'make_link' => 0,

+

'path' => '',

+

'link_class' => '',

+

'alt' => '',

+

'prefix' => '',

+

'suffix' => '',

+

'target' => '',

+

'help' => '',

+

'trim' => 0,

+

'max_length' => '',

+

'word_boundary' => 1,

+

'ellipsis' => 1,

+

'html' => 0,

+

'strip_tags' => 0,

+

),

+

'empty' => '',

+

'hide_empty' => 0,

+

'empty_zero' => 0,

+

'link_to_node' => 0,

+

'label_type' => 'custom',

+

'format' => 'default',

+

'multiple' => array(

+

'group' => TRUE,

+

'multiple_number' => '',

+

'multiple_from' => '',

+

'multiple_reversed' => FALSE,

+

),

+

'exclude' => 0,

+

'id' => 'field_issue_value',

+

'table' => 'node_data_field_issue',

+

'field' => 'field_issue_value',

+

'override' => array(

+

'button' => 'Use default',

+

),

+

'relationship' => 'none',

+

),

+

'body' => array(

+

'label' => '',

+

'alter' => array(

+

'alter_text' => 0,

+

'text' => '',

+

'make_link' => 0,

+

'path' => '',

+

'link_class' => '',

+

'alt' => '',

+

'prefix' => '',

+

'suffix' => '',

+

'target' => '',

+

'help' => '',

+

'trim' => 0,

+

'max_length' => '',

+

'word_boundary' => 1,

+

'ellipsis' => 1,

+

'html' => 0,

+

'strip_tags' => 0,

+

),

+

'empty' => '',

+

'hide_empty' => 0,

+

'empty_zero' => 0,

+

'exclude' => 0,

+

'id' => 'body',

+

'table' => 'node_revisions',

+

'field' => 'body',

+

'override' => array(

+

'button' => 'Use default',

+

),

+

'relationship' => 'none',

+

),

+

));

+

$handler->override_option('style_options', array());

+

$handler->override_option('path', 'fwn/beat');

+

$handler->override_option('menu', array(

+

'type' => 'normal',

+

'title' => 'Fedora Weekly News Beats',

+

'description' => '',

+

'weight' => '1',

+

'name' => 'primary-links',

+

));

+

$handler->override_option('tab_options', array(

+

'type' => 'none',

+

'title' => '',

+

'description' => '',

+

'weight' => 0,

+

'name' => 'navigation',

+

));

+

$handler = $view->new_display('feed', 'Feed', 'feed_1');

+

$handler->override_option('style_plugin', 'rss');

+

$handler->override_option('style_options', array(

+

'mission_description' => FALSE,

+

'description' => '',

+

));

+

$handler->override_option('row_plugin', 'node_rss');

+

$handler->override_option('row_options', array(

+

'relationship' => 'none',

+

'item_length' => 'fulltext',

+

));

+

$handler->override_option('path', 'fwn/beat/%/feed');

+

$handler->override_option('menu', array(

+

'type' => 'none',

+

'title' => '',

+

'description' => '',

+

'weight' => 0,

+

'name' => 'navigation',

+

));

+

$handler->override_option('tab_options', array(

+

'type' => 'none',

+

'title' => '',

+

'description' => '',

+

'weight' => 0,

+

'name' => 'navigation',

+

));

+

$handler->override_option('displays', array(

+

'page_1' => 'page_1',

+

'default' => 0,

+

));

+

$handler->override_option('sitename_title', FALSE);

+

</pre>

[[Category:Fedora Insight]]

[[Category:Fedora Insight]]

Latest revision as of 15:21, 31 March 2011

This page tracks the setup of content (call it content architecture if you like) for the Fedora Insight system.