I have Node_Gallery functioning almost as I'd like. My related issues are:
1. I've added a node reference field, and a taxonomy field to my Gallery node. On my teaser and full node display, these fields show up. I seem to be unable (or unsure how to...) remove these fields from displaying to my users. It's more internal data that I don't want to show. Which leads me to 2...
2. I use DisplaySuite (http://drupal.org/project/ds) which takes control of your "Display Fields" option. However when I view my Gallery Node in DisplaySuite, it says none of the fields are in any of the Display Regions... Both Teaser and Full Node have all their fields disabled, as if nothing is to be shown.
I'm not sure how to deal with this. My gallery teasers do show up on the front page, but I'm not sure how they're getting there properly without using Displays? And I can't move my cover image and description around within the teaser without being able to put them into Display Regions.
Confused. :) Any advice?
PS: I was running into 1MB upload issues, until FINALLY I realized I could click "next" on the node gallery configuration page to get to more data. I think that could be highlighted better for noobs like me.
PPS: I solved my upload errors (http error 0) by configuring my Memcache module to not spit out the debug info to admins.
Thanks for the great module, look forward to batch uploading!
Comments
Comment #1
parasox commentedComment #2
dddave commentedSad answer: No.
NG2 cannot be effectively controlled by DS. My guess for NG3 is that it might be possible. Let's hope for the best.
Setting to fixed because the (dated)support request is answered.
Comment #4
parasox commentedThanks for the response dddave,
In case it helps someone, I was able to stop my extra field data from appearing by using CSS to "display: none" so that was nice.
I am still using Node Gallery as I think it's the best solution for me, I'm just unable (lack the necessary skills!) to theme the actual gallery node and single images pages. That works fine for me for the time being now that I've been able to hide my extra fields.
Thanks again!
Comment #5
parasox commentedDisplaySuite and NG 3.x now do work together just fine, follow these steps.
You'll need the Views Attach module: http://drupal.org/project/views_attach
Views -> Edit View-> node_gallery_gallery_image_views
Add a "node content" view
This will set the defaults to pretty much the same as your "View All Image Thumbnails" view.
You'll need to add/override:
- Name
- Node Types: Node Gallery (node_gallery_gallery) (change from the default of Story)
I also change my Style: Grid settings to display 4 images instead of 6 across, change my Sort: Node: Nid to Ascending, and set my Field: Title to "Exclude from Display" so I get just pictures displayed, however with proper ALT and TITLE attributes set. If you remove this field altogether, your ALT tokens will break.
Save.
Visiting a gallery, you'll see the images are all displayed twice.
Now go to DisplaySuite -> Layout -> Node Gallery -> Full Node
Drag in your title, description, and your new Node Content field (and whatever other custom fields you want to display)
Note: I drag the node content into "middle" region, and the body into "header", for those new to DS.
Save, and now you have NG 3.x working great with DisplaySuite.
This is also a smooth way of putting your body / description above the images rather than below, without resorting to theming.
Hope this helps someone!
Comment #6
justintime commentedThanks @parasox, this sounds like a FAQ/Recipe that should be included in the handbook. Marking as a documentation task needing work.
Comment #7
scroogie commentedPerhaps we can learn from the Views attach module in that case and add some code to our Views integration that makes us compatible to Display Suite directly. See
http://drupalcode.org/viewvc/drupal/contributions/modules/views_attach/v...
Comment #8
justintime commentedSeems we have a decent workaround, updating component.
Comment #9
justintime commentedComment #10
parasox commentedIn case we ever get to a D7 module, I'll leave this here in case. Views Attach has no D7 port, and is replaced by http://drupal.org/project/eva
Comment #11
scroogie commentedI think since we implemented extra_fields() we don't need the workaround anymore, but I didn't confirm this.