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.
If a want to create more than one node gallery the "Upload New Items" tab is only shown for the latest node gallery relationship I have created.
E.g. I have a node gallery for the tow content type pairs:
media_album with media_album_image
and
user_album with user_album_image
I have created relationships for both galleries. However only the latest created relationship seems to work for uploading images, i.e. shown "Upload New Items" tab on the full node.
Comment | File | Size | Author |
---|---|---|---|
#3 | node_gallery-missing-upload-tab-1911314-3.patch | 2.75 KB | zengenuity |
Bildschirmfoto 2013-02-08 um 00.55.57.png | 23.5 KB | ahaus |
Comments
Comment #1
ahaus CreditAttribution: ahaus commentedComment #2
ahaus CreditAttribution: ahaus commentedSeems to be a permission problem.
If I try the path "myapp/node/117/upload" for the working node gallery relationship it shows the tab correctly.
If I try for it for another node gallery relationship (where the "Upload New Items" tab is not shown) it brings up an "Access Denied" error.
I am testing this with the admin user (1).
Comment #3
zengenuity CreditAttribution: zengenuity commentedI was able to replicate the issue.
Try the attached patch.
Comment #4
ahaus CreditAttribution: ahaus commentedThanks for this patch. It did the trick for me.
For one Drupal instance I had to recreate the relationships. On another Drupal instance I just applied the patch and it worked (no need for recreating the relationships).
Comment #5
ahaus CreditAttribution: ahaus commentedComment #6
stinky CreditAttribution: stinky commentedHere's what I got when I tried to apply the patch:
[root@dev node_gallery]# patch -node_gallery_api.module < node_gallery-missing-upload-tab-1911314-3.patch
patch: **** Only garbage was found in the patch input.
Comment #7
stinky CreditAttribution: stinky commentedTried
patch < node_gallery-missing-upload-tab-1911314-3.patch
and I think it worked, but the upload tab is still missing.Comment #8
stinky CreditAttribution: stinky commentedAny ideas on getting the Upload tab to appear???