Node isdestymas grid
Sukuriau views (jo koda pridedu). Kiap padaryti kad is term saraso patekus i term`o node sarasa jis butu vaizduojamas grid formatu?
$view = new view;
$view->name = 'bandymas';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'term_data';
$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(
'tid_1' => 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,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'imagecache_preset' => '80x60',
'link_to_taxonomy' => 1,
'exclude' => 0,
'id' => 'tid_1',
'table' => 'term_image',
'field' => 'tid',
'relationship' => 'none',
),
'name' => 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,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_taxonomy' => 1,
'exclude' => 0,
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('filters', array(
'vid' => array(
'operator' => 'in',
'value' => array(
'1' => '1',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('items_per_page', 16);
$handler->override_option('use_pager', 'mini');
$handler->override_option('pager_element', 12);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
'grouping' => '',
'columns' => '5',
'alignment' => 'horizontal',
));
$handler = $view->new_display('page', 'Puslapis', 'page_1');
$handler->override_option('path', 'mano_kelias');
$handler->override_option('menu', array(
'type' => 'normal',
'title' => 'mano_kelias',
'description' => '',
'weight' => '0',
'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));






ta prasme patekus i betkoki
ta prasme patekus i betkoki taxonomy/term/* rodytu viena stiliu? jei taip, tada ijungi taxonomy/term/* viewsa ir nustatai dizaina, tada visus termus rodys tuo dizainu kokiu nustatei :)
blemba net geda pasidare
Nu but tokiam aklam: vis norisi dvirati israst. Dekui uz paprotinima. Tik beda kad nesigauna panaudot cck lauku. Ta prasme nera galimybes isvesti atitinkamus cck laukus i ekrana...
kaip ir yra. gyvas pavyzdys
kaip ir yra. gyvas pavyzdys http://drupal.lt/taxonomy/term/355 , čia pamatęs komentarą padariau taip :)