help with OG Galleries setup

snappytech - April 3, 2007 - 23:56

1. Go to Views and create a views view to use as the default galleries page. ( i created a view .. called view ) correct?

. An OG Galleries view must have the following components:
* Three arguments, the OG Galleries group id and two taxonomy term ids. ( How do i check if i have this ? )
* A page type of OG Galleries. This will create configurable themes for the view. ( i created this )
* A page url, which will become the url to view the OG Galleries. ( i don't know what URL to use )
* Optional, for a block view set the block type to OG Galleries, too. This will create configurable themes for the block view.( i did this)
* Optional, a menu, filled out to display the Galleries in your navigation. ( i did this )
* A content type filter, set to display the content types that can be added to galleries. Node types can be image nodes, CCK nodes, or anything else. ( Lost )
* NO node distinct filter. OG Galleries needs to be able to place items in more than one gallery and the node distinct filter interferes with that ability. ( more lost )
2. Go to Settings and identify the galleries view. ( didn't see one)
3. In Access, identify the roles that should be allowed to add or edit galleries. ( I should be on the TV show LOST )
4. Go to Groups, choose the Group home page, and select the 'Galleries' tab to add and edit galleries for the group. Site administrators can also administer galleries at Categories.
5. Once all these things are done, add or edit a node that belongs in one of the galleries and you will see a list of galleries the node can be added to.

( Could someone explain how to do this ? )

There is a default view

KarenS - April 4, 2007 - 00:51

There is a default view provided which has everything already set up. Start with that. The instructions are explaining what you need to do if you start from scratch. If you start with the default view, you only have to do two things to it:

1) go down to the section called 'Fields' and add to the field section whatever item you want to display in the gallery (generally either an image node or a CCK imagefield. Set it up to show the thumbnail view.

2) go down to the section called 'Filters' and adjust the Node: Type filter to select only the content type you want displayed in galleries -- the content type of the image or imagefield you put in the field.

Save that view to use as your gallery view.

3) Go to admin/settings/og_galleries (in 4.7) or admin/settings/og/og_galleries (in 5.x) and select the view you just created as the gallery.

4) Go to your group admin page and add any galleries you want. You'll see a 'galleries' tab on your group home page.

5) Add or edit the content type you put in your gallery (the image or imagefield) and you will see there is a place to add it to a gallery.

thanks a lot for your help

snappytech - April 4, 2007 - 02:16

thanks a lot for your help

... but where do i find "fields"

i am looking in the the "administer views"

Because i think i might be

snappytech - April 4, 2007 - 23:10

Because i think i might be looking in the wrong place

any help guys :(

snappytech - April 10, 2007 - 00:23

any help guys
:(

First, click "Add"

CheckeredFlag - April 17, 2007 - 20:20

Snappytech, I too am working to get og_galleries set up. If I understand this correctly, first find the existing "og_galleries" view and click "Add". It then creates a cloned custom view from where you will find the Fields and Filters that were referred to.

I think I'm getting it working mostly, but I am encountering a weird error message when clicking on "Galleries" in the main menu (i.e. www.example.com/galleries). I don't know if this is a bug or if I'm not doing something quite right:

  • user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '3)))' at line 1
    query: SELECT count(DISTINCT(og_galleries.gid)) FROM node node LEFT JOIN term_node term_node ON node.nid = term_node.nid LEFT JOIN term_data term_data ON term_node.tid = term_data.tid LEFT JOIN vocabulary vocabulary ON term_data.vid = vocabulary.vid LEFT JOIN og_galleries og_galleries ON vocabulary.vid = og_galleries.vid WHERE (node.status = '1') AND (node.type IN ('image')) AND ((og_galleries.gid IN (0,5,4,2,,3))) in E:\drupal\includes\database.mysql.inc on line 172.
  • user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '3))) GROUP BY og_galleries.gid, node_sticky, node_created_create
    query: SELECT og_galleries.gid, og_galleries.gid AS gid, count( DISTINCT(node.nid)) AS num_nodes, node.sticky AS node_sticky, node.created AS node_created_created, node.title AS node_title, node.changed AS node_changed FROM node node LEFT JOIN term_node term_node ON node.nid = term_node.nid LEFT JOIN term_data term_data ON term_node.tid = term_data.tid LEFT JOIN vocabulary vocabulary ON term_data.vid = vocabulary.vid LEFT JOIN og_galleries og_galleries ON vocabulary.vid = og_galleries.vid WHERE (node.status = '1') AND (node.type IN ('image')) AND ((og_galleries.gid IN (0,5,4,2,,3))) GROUP BY og_galleries.gid, node_sticky, node_created_created ORDER BY node_sticky DESC, node_created_created DESC LIMIT 0, 10 in E:\drupal\includes\database.mysql.inc on line 172.

No items found for this gallery.

can't follow the "step by step" guide

schildi - September 11, 2007 - 10:03

I also tried to follow this guide step by step.
At item 3
3) Go to ... admin/settings/og/og_galleries (in 5.x) and select the view you just created
I got the first problem since this menu does not exist.
But there exists a "OG Galleries" in menu admin/groups. Here I can find a button for activating "galleries view".

Next item is
4) Go to your group admin page and add any galleries you want. You'll see a 'galleries' tab on your group home page.

Sorry? Can't find this entry. Can you provide me with some precise hints?

hmm

MKI-Miro - August 22, 2007 - 14:48

1) go down to the section called 'Fields' and add to the field section whatever item you want to display in the gallery (generally either an image node or a CCK imagefield. Set it up to show the thumbnail view.


i cant add field "node image" its not there ! why ??

How to setup view?

kahut - August 20, 2008 - 12:40

Three arguments, the OG Galleries group id and two taxonomy term ids. ( How do i check if i have this ? )
Any suitable ans for above line?

i created veiw but still get this "There are no Views that meet the galleries criteria." any help plz? i tried my best to find some step by step info from drupal even through google but didn't get any help.

 
 

Drupal is a registered trademark of Dries Buytaert.