Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
any chance that this will ever be ported to D7, to perform a similar role for Node Gallery 7.x-1.0 ?
Comment | File | Size | Author |
---|---|---|---|
#13 | node_gallery_subgalleries_1.txt | 7.3 KB | bdornbush |
#13 | node_gallery_gallery_summaries_1.txt | 7.83 KB | bdornbush |
#13 | node_gallery_gallery_item_views_1.txt | 14.17 KB | bdornbush |
#5 | node_gallery_gallery_summaries.txt | 7.96 KB | bkat |
#5 | node_gallery_gallery_item_views.txt | 7.96 KB | bkat |
Comments
Comment #1
scroogie CreditAttribution: scroogie commentedUnfortunately a straight port is not possible, as far as I judge things at least, as the architecture of node gallery changed significantly with D7. I would like to upgrade the module, but until now, I simply didn't have enough time.
Comment #2
Aonoa CreditAttribution: Aonoa commentedI would very much like this functionality in D7 as well, is it being worked on? :-)
Best regards,
Ao
Comment #3
Celerity CreditAttribution: Celerity commentedI too would be interested in a D7 port. Just jumping on the wagon.
-cel
Comment #4
bkat CreditAttribution: bkat commentedI got hierarchical galleries working in Drupal 7 without a specialized module. I did it as follows
Now when you edit a gallery, you can set the parent gallery. The main galleries page will only display the galleries that don't have a parent and when you view a gallery, it will display any child galleries before the gallery images.
Some things that could be done better:
You can check out my work in progress at https://usafl.com/galleries
Comment #5
bkat CreditAttribution: bkat commentedComment #6
Ayran CreditAttribution: Ayran commentedHi bkat,
I totally like what you have done here!
Unfortunately I cannot import your views, and have some problems implementing it, so may I ask you for a more detailed tutorial, please?
Thanks
Comment #7
Ayran CreditAttribution: Ayran commentedOh, sorry, my bad. All is fine.
Thanks again, this is genius, seriously. I think it should be part of the Node Gallery standard package.
Comment #8
bkat CreditAttribution: bkat commentedGlad it helped someone out Ayran.
Comment #9
Ayran CreditAttribution: Ayran commentedFYI - in all my galleries, including these containing only nested galleries and no images, I have placed a dedicated cover image and than have offset 1 in the pager settings. Like this the dedicated cover is hidden from view but is still used as cover.
The minor drawback is that I have "Image count:1" on the Summaries page, as in your example. There is no solution to that yet, I presume? It will rock if there is way to put subgalleries count as well.
Comment #10
bkat CreditAttribution: bkat commentedI haven't really spent any time looking at the minor issues since its working "good enough" for now.
Comment #11
bdornbush CreditAttribution: bdornbush as a volunteer commentedbkat,
I created the field named field_parent_gallery.
When I tried to add the view node_gallery_subgalleries, I get an error message:
Field handler field_data_field_node_gallery_image.field_node_gallery_image is not available.
Can you tell me what I might be missing?
Thanks,
Comment #12
bdornbush CreditAttribution: bdornbush as a volunteer commentedbkat,
I found the problem with the view node_gallery_subgalleries. The default name for the field changed from field_node_gallery_image to node_gallery_media.
I tried to download the two additional views, and found that they are both the same. node_gallery_gallery_item_views.txt is actually for the view node_gallery_gallery_summaries, so we have that one twice. Can you upload the node_gallery_gallery_item_views.txt again?
Thanks,
Comment #13
bdornbush CreditAttribution: bdornbush as a volunteer commentedI'm continuing to work on this. I modified Node Gallery: Gallery Item Views to inject Node Gallery Subgalleries as a header (Global:View area).
I modified Node Gallery: Gallery Summaries to only display galleries where Parent Galley is empty.
I created a gallery as a subgallery of another gallery. The lookup feature found the other gallery.
When I view the /galleries page, I see only the gallery that is not a subgallery. However, that gallery doesn't show the subgallery in a header view.
I have attached the views as I modified them, named the same as bkat's views with a "_1" suffix. Any idea why the subgallery is not appearing as a header view?