At firs, I apologise for many stupid questions, but for now, I don't know answers.
How I can create kind of hierarchy between galleries? I used long time Acidfree and there I can creaty album (gallery) in other album. So I can create tree of galleries.
One way with node_gallery is use Taxonomy to categorieze them. This can be very useful for global public galleries, but for per user galleries?
The point where I going, is that from my test I don't figure out, how to create public global web gallery. Because, when I create a gallery - it's in my username's galleries. So, is there any way, how to create "global web gallery" that not bellongs to any user?
Is there any FAQ, where I can find some answers?
Thanks for reply an be patient please :).
Comments
Comment #1
RedTop commentedI second this.
Nesting galleries (or albums) is a killer feature as it is just so user friendly and a great way to keep your galleries organized.
Comment #2
dbeall commented@kecinzer There are no stupid questions. I am not sure about the answers(yet).
(I have gallery2 on a website which uses nesting and it is very useful)
Anything is possible with views, but using taxonomy might be better.
Not sure if this is a feature request or lack of documentation. Might be a little of both.
Just haven't been down that road yet, but agree with everyone about nesting galleries.
Comment #3
dbeall commentedI suppose a global gallery could be created by anonymous user and photos could be added by any user with permissions.
Comment #4
RedTop commentedI tried to create nesting using taxonomy and views. Granted, I'm new at this, but it feels overly cumbersome. I think it will be very hard to explain it to my girlfriend if I ever figure it out myself. :P
A more userfriendly way would be a dropdown menu that allows you to pick a parent gallery when creating a gallery through 'create content'. I managed to create hierarchy through the menu structure, but as my girlfriend has LOTS of galleries I'm doubtful I could squeeze all of them into the menu... nor would I want to.
Being able to click thumbnails to navigate a gallery hierarchy (as in Gallery2) would be a great feature. :)
Comment #5
dbeall commentedThe module is somewhat new and may not every need, but there is always a way since it is "nodes"
Drupal is very powerful platform. It's like baking a cake, once you figure out the ingredients and the measure of each, it's 15 minutes and in the oven.
Sometimes, a wire frame sketch can help to sort things out.
If you use Gallery 2 or Gallery 3 and bridge it to Drupal. We will not look down on you for doing that.
I know I am not much help right now.. wait till January when the snow is here and I will be into this very task myself.
Comment #6
dbeall commented@RedTop, since your messing with this now, maybe this module might help.
A quick read of the project page, talks about path auto and token which are both really neat.
http://drupal.org/project/nodehierarchy
Comment #7
RedTop commentedThanks, I will read this asap and see if I can figure it out somehow. Once (if) I do I will post my findings here. :)
Comment #8
dbeall commentedWe most certainly need this in documentation when a recipe is formulated. Something people can follow, step by step with some options.
A taxonomy list for the gallery content type would be a good starting point. I am not sure how deep that can go.
Vocabulary=Photos- term= vacation
- sub-term= Florida
- sub-term= California
- sub-term= Maine
- term= work
- term= friends
- term=family
or maybe a user created free tagging vocabulary
Comment #9
RedTop commentedNode_hierarchy gets me a bit further, but the result is a view of all images in both parent and child galleries. I would like to create a view where images of the current gallery are mixed with covers of child galleries, without the "non-cover" images of child galleries. This presents a bit of a problem as this requires a mix of 'gallery-images-list.tpl.php' and 'gallery-cover-view.tpl.php'.
Comment #10
RedTop commentedBoy, was I on the wrong track (to see what I'm referring to, see below deprecated text)! The solution is a lot simpler and can accessed through the Node Gallery settings.
This is what it looks like:
http://www.richardvankooten.nl/webspace/node_gallery_nesting03.jpg
(National Geographic gallery is a child of Nature gallery.)
I'm busy editing 'gallery-teaser.tpl.php' and css to make the cover image of the child gallery consistent with "ordinary" gallery covers, but it seems like I'm making real progress here! :)
This is now deprecated:
Comment #11
RedTop commentedEureka!
http://www.richardvankooten.nl/webspace/node_gallery_nesting04.jpg
Will add proper documentation soon (tomorrow probably), but in short: needed node_hierarchy, adjusted node_gallery teaser settings to display type 'cover', added title to 'gallery-teaser.tpl.php', changed node_gallery css, changed 'node.tpl.php' to remove title, installed imagecache_actions module and added ImageCache preset for covers to distinguish albums.
Thx for the node_hierarchy hint dbeall!
Comment #12
RedTop commentedWell, it took a bit longer as I still had a lot of tinkering to do, but I finally got it to work.
Here is how to create a Gallery2 like gallery. Galleries are structured in a hierarchical tree with childgallery covers appearing in parent galleries' imagelists. Lightbox is used and the default image preview page is not used anymore. Same goes for the 'user's Galleries' pages.
Screenshot
-------
INSTALL
-------
Install the following modules:
- node_gallery
- node_hierarchy
- Imagecache
- Imagecache actions
- ImageAPI
- views
- custom breadcrumbs
-------------
CONFIGURATION
-------------
node_hierarchy configuration:
1) site configuration - node_hierarchy - gallery can be both parent and child.
2) site configuration - node_hierarchy - default children view: nodehierarchy_children_view.
imagecache configuration:
This configuration creates square thumbnails. Album covers are recognizable by the text 'album'.
1) site building - imagecache - create album preset - action aspect switcher
2) site building - imagecache - create album_landscape preset - actions scale:height 150 crop:150x150 centered add text:36px, angle 90, opacity 60, #000000, ALBUM
3) site building - imagecache - create album_portrait preset - actions scale:width 150 crop:150x150 centered add text:36px, angle 90, opacity 60, #000000, ALBUM
4) site building - imagecache - create thumb preset - action aspect switcher
5) site building - imagecache - create thumb_landscape preset - actions scale:height 150 crop:150x150 centered
6) site building - imagecache - create thumb_portrait preset - actions scale:width 150 crop:150x150 centered
7) site building - imagecache - create no_actions preset - actions none
node_gallery configuration:
1) site configuration - node_gallery - edit default gallery - set image size presets: cover: album, thumbnail: thumb, preview: no_action.
2) site configuration - node_gallery - original display image - lightbox2 popup: no_action preset
3) site configuration - node_gallery - teaser setting - display type: cover (important!), preset: album
4) site configuration - node_gallery - gallery landing page setting - gallery display type: thumbnails that open a lightbox2 gallery, preset: no_action
custom breadcrumbs configuration:
1) site building - custom breadcrumbs - add custom breadcrum node_gallery_gallery
1) site building - custom breadcrumbs - titles: [hierarchyparenttitle], path:
<pathauto>|[hierarchypath].-------
THEMING
-------
In order for Node Gallery to behave and look the same as a Gallery2 page quite a bit of customizing is needed. The default view would be image thumbs, followed by the Gallery description (body text), followed by the covers of the child galleries. We are going to change this into images, covers of child galleries (without a linebreak so they blend into the thumbnail grid) and then Gallery description.
For this we need to override the defaults by placing the following template files in our theme 'templates' directory (I use a Zen subtheme):
gallery-cover-view.tpl.php
gallery-images-list.tpl.php
gallery-teaser.tpl.php
node-node_gallery_gallery.tpl.php
node-view-nodehierarchy_children_teasers.tpl.php
views-view--nodehierarchy-children-teasers.tpl.php
views-view-unformatted--nodehierarchy-children-teasers.tpl.php
---
CSS
---
I use the grid-layout as documented elsewhere as it reflects Gallery2's layout.
Like I said... some heavy customizing needed. :P
Now it's a matter of creating a top-level gallery (ie 'photos') and linking to that gallery. When creating a new gallery be sure to specify its parent gallery and the new gallery's cover image will show up in the parent gallery's imagelist. :)
If anyone knows how to do things a better way, please let me know! Hope this helps people who want Gallery2-like galleries but want to do so natively in Drupal.
Comment #14
RedTop commentedComment #15
dbeall commentedI know you have a lot of time and testing different things to put this all together.
When i get back home next week, I will follow your lead and see what i end up with, compare notes and stuff...
It looks pretty neat from what you wrote up and the screen shot...
Comment #16
RedTop commentedThx. :)
I just migrated and haven't found a job yet (though that will probably change soon). It does give a lot of time to get to know Drupal though. ;)
Please let me know if I missed documenting a couple of steps somewhere.
Comment #18
RedTop commentedWell, I started filling my galleries with images and sure enough... an issue arose.
consider parent gallery A with one child gallery B. Child gallery B has lots of pictures.
Drupal attempts to create a pager for child gallery B as it should. However, this pager is placed in the parent gallery A instead of the child gallery B even though parent gallery A itself has no images and just one child gallery. Oddly enough, child gallery B has no pager at all!
I have been able to confirm that Drupal counts the images in child gallery B because the pager disappears from parent gallery A as soon as I remove enough pictures from child gallery B.
Does anyone have some pointers on how I could solve this?
Comment #19
wuf31 commentedsubscribe..
@RedTop, care to create a feature for this ?
Combination of imagecache, nodegallery, nodehierarchy, so that people can easily replicate this "heavy" customization.
Then, maybe people can help with your pager problem :)
Comment #20
RedTop commentedDo you mean a site recipe in the Drupal documentation? Sure, can do... I'll just copy my post. :)
However, I'm not sure whether it is smart to add a site recipe when I know there are problems with it.
Comment #21
wuf31 commentednope, not a site recipe..
But features, take a look at the features module, if you haven't heard about it, it's a bit complicated, i'm afraid..
Comment #22
RedTop commentedAh, never heard of the Features module, but it looks similar to automated roll-out / unattended install thingies.
I still want to learn how to do this using a custom module, so I'd rather spend my time doing that instead of creating a feature... Feel free to use my write-up to create one yourself though. :)
Comment #23
dddave commentedWe urge everyone to use NG3. There won't happen much with NG2 in the future.