Closed (fixed)
Project:
Views Gallery
Version:
6.x-1.3
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2009 at 16:08 UTC
Updated:
19 Jun 2010 at 11:00 UTC
Jump to comment: Most recent
Comments
Comment #1
Oleksa-1 commentedi support this feature request, too. Because anyway , who will use this module will have to create menu item (using views) for galleries page.
Comment #2
asb commentedsubscribing
Comment #3
Anonymous (not verified) commentedJust what I was looking for.
Comment #4
balaftuna commentedis there a temporary way of having a view of all the galleries?
Comment #5
axel pressbutton commentedSubscribing :)
A very nice gallery setup, thanks!
Comment #6
karens commentedThis is a simple fix. We use an argument on the block to tell which gallery to pull the pictures from and I changed the default to show all galleries. This does seem like a better default. You can still edit the view to give the argument a default value if you want to see only pictures from a specific gallery.
Comment #7
karens commentedI don't understand #1. The gallery view is the gallery node you created. You can give it a menu or not, just as with any other node.
Comment #9
Vasu commentedHow to create a list or gallery of all gallery nodes?
Comment #10
Vasu commentedIs there anyway to show a list of all galleries in a page/node with a teaser view on the frontpage?
Comment #11
grimer commentedHi Vasu,
Not sure if you're trying to create a 'gallery of galleries', but NeoID was kind enough to post the code for a 'view' that can be imported.
http://drupal.org/node/640220
I navigated the 'Views' page and clicked on the 'Import' tab. I then just pasted in NeoID's code and saved. This automatically created a new view and a 'Galleries' menu link at the top of the page. This is a 'gallery of galleries'. You might need to adjust the settings to get it how you want it - e.g. galleries ordered by descending post date, etc.
I hope that helps.
Rob
Comment #12
Vasu commentedThanks rob, it works well. Now I have a page with a list of galleries and a menu item.
Is there anyway by which just 2 or 3 recently added galleries alone can be displayed on the front page (that is what i mentioned wrongly as 'teaser view on the front page')
Comment #13
Vasu commentedOh yeah, 'views attach' module rescued me.
I created a new content type 'gallery list' and created a 'gallery list' content (node).
Now I created two 'node content' views - Both attached to Node type- gallery list.
--The first node content view (named Full node content) is attached to full node (of the content type 'gallery list' )
--The second node content view (named teaser node content) is attached to the teaser of the node.
Now i published the 'gallery list' to front page. The front page shows 3 recent galleries (sorted descending) while the full node shows a list of all galleries.
Comment #14
grimer commentedHi Vasu,
I'm not entirely sure how to follow your instructions. Could you please export the code for this view and post it here?
What are the exact names that I need to give the new content types - i.e. human readable and machine readable?
Thanks,
Rob
Comment #15
Vasu commentedHi rob,
The name of the new 'content type' can be anything you want.It is just used to tag(attach) the gallery view. Anyway i am putting the code here.
$view = new view; $view->name = 'photo_galleries'; $view->description = 'List of galleries'; $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_gallery_image_fid' => array( 'label' => 'Image', '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_node' => 1, 'label_type' => 'widget', 'format' => 'short_linked', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_gallery_image_fid', 'table' => 'node_data_field_gallery_image', 'field' => 'field_gallery_image_fid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'changed' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'changed', 'table' => 'node', 'field' => 'changed', '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', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'gallery' => 'gallery', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Photo galleries'); $handler->override_option('items_per_page', 12); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'columns' => '3', 'alignment' => 'horizontal', )); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'relationship' => 'none', 'build_mode' => 'teaser', 'links' => 1, 'comments' => 0, )); $handler = $view->new_display('node_content', 'Full Node content', 'node_content_1'); $handler->override_option('types', array( 'gallery_list' => 'gallery_list', 'page' => 'page', )); $handler->override_option('modes', array( '0' => 'full', '1' => 'edit', )); $handler->override_option('argument_mode', 'nid'); $handler->override_option('default_argument', ''); $handler->override_option('show_title', 0); $handler = $view->new_display('node_content', 'Teaser Node content', 'node_content_2'); $handler->override_option('items_per_page', 3); $handler->override_option('types', array( 'gallery_list' => 'gallery_list', )); $handler->override_option('modes', array( '0' => 'teaser', )); $handler->override_option('argument_mode', 'nid'); $handler->override_option('default_argument', '');Comment #16
asb commentedThe code you posted can't be imported into 'views'. Error message:
Greetings, -asb
Comment #17
okday commentedsubscribing
Comment #18
Vasu commentedSorry about it; CKeditor had spoilt it. Here is the working code. Before importing this code make sure two or more photo galleries are created using views gallery module. Create a new content type 'gallery_list' and create a node of this type (just give any title to it and leave the body field empty;publish it to front page).
Install views attach module and then import this code.
If you want each gallery thumbnail to run as a slide show you can edit the 'gallery' view 'gallery image' display type style to 'slideshow' and 'items to display' to any number more than 1 (views slideshow module is needed).
Comment #19
mlieshout commentedHow can I translate the menu-item of the 'view of all the galleries' into another language? I've searched the forum but can't find the solution.
Best regards,
Maarten
Comment #20
mlieshout commentedI think I've found a way to translate the menu-entries:
http://dev.mariusilie.net/content/how-to-drupal-6-multilingual-views-and...
Comment #21
asb commentedAs with #640220: Views Gallery: Page View Question this view requires 'row options = node' and soes not expose fields to the view. It has exactly the same limitations like NeoIDs approach.
So the question remains: How do we build a tabular or other field-based listing of galleries which includes at least one image from the image gallery? Has anyone solved this issue already?
Greetings, -asb
Comment #22
globalplayer commentedI'm waiting for this as well...
Comment #23
Poieo commentedReverse Node Reference works really well if you want to use fields rather than nodes. However, you must have MySQL 5.1 or higher running on your server for it to work.
Comment #24
karens commentedThere is a simpler way to do this, it can be a regular page view listing all the galleries. There is no need to create a custom content type and a single node to hold the results, this makes more sense as a regular view.
I'm adding a view to list all galleries.
Comment #25
asb commented> I'm adding a view to list all galleries.
Thank you! Since there is no 6.x-1.x-dev this will get into 6.x-1.4, I assume?
-asb
Comment #26
aitala commentedIt is in the 6.x-1.3 release put out today.
Just check the Views page.
Eric
Comment #27
asb commentedFollow-up issue: #818968: How to build a field-based gallery of 'Views Gallery' galleries with views?