View de js pentru thumbnail video
Înapoi la: Forum » Tehnologie
-
27 Aug 2009, 15:310 0Iata un view de js destinat realizarii thumbnail-urilor pentru galeria video de pe site-ul pe care dorim sa-l infiintam.Este o vedere exacta a js-ului .
O surprindere de nota 10+
$view = new view;
$view->name = 'Video';
$view->description = 'video gallery view';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = '0';
$view->api_version = 2;
$view->disabled = FALSE; // Edit this to true to make a default view disabled initially
$view->display = array();
$display = new views_display;
$display->id = 'default';
$display->display_title = 'Gallery';
$display->display_plugin = 'default';
$display->position = '1';
$display->display_options = array (
'style_plugin' => 'grid',
'style_options' =>
array (
'columns' => '4',
'alignment' => 'horizontal',
),
'row_plugin' => 'node',
'row_options' =>
array (
'teaser' => 1,
'links' => 1,
),
'relationships' =>
array (
'field_video_nid' =>
array (
'id' => 'field_video_nid',
'table' => 'node_data_field_video',
'field' => 'field_video_nid',
'label' => 'field_video_nid',
'required' => false,
),
),
'fields' =>
array (
'field_video_nid' =>
array (
'id' => 'field_video_nid',
'table' => 'node_data_field_video',
'field' => 'field_video_nid',
'label' => 'field_video',
'format' => 'default',
'multiple' =>
array (
'group' => true,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => false,
),
'relationship' => 'none',
'link_to_node' => 1,
),
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'items_per_page' => 10,
'use_more' => 0,
);
$view->display['default'] = $display;
$display = new views_display;
$display->id = 'page';
$display->display_title = 'Page';
$display->display_plugin = 'page';
$display->position = '2';
$display->display_options = array (
'defaults' =>
array (
'access' => true,
'title' => true,
'header' => true,
'header_format' => true,
'header_empty' => true,
'footer' => true,
'footer_format' => true,
'footer_empty' => true,
'empty' => true,
'empty_format' => true,
'use_ajax' => true,
'items_per_page' => true,
'offset' => true,
'use_pager' => true,
'pager_element' => true,
'use_more' => true,
'distinct' => true,
'link_display' => true,
'style_plugin' => true,
'style_options' => true,
'row_plugin' => true,
'row_options' => true,
'relationships' => true,
'fields' => true,
'sorts' => true,
'arguments' => true,
'filters' => true,
),
'relationships' =>
array (
),
'fields' =>
array (
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'path' => 'gallery',
);
$view->display['page'] = $display;
Înapoi la: Forum » Tehnologie