A site I'm working on currently has a lot of small galleries with only a few images (because I'm using node_gallery to group portfolio pieces from specific project), so they will normally be viewed on taxonomy pages by category, rather than on their own individual gallery pages. For the most part this is working fine - each taxonomy term page is showing a nice set of mini-galleries (teasers), which I've been able to make look pretty good with CSS. And the thumbnails open the full image in a lightbox, just as they would if viewed on the individual gallery pages.
But one problem - on the individual gallery pages, the title appears beneath each image, which is good. But on the taxonomy pages, where the galleries are viewed as teasers, it doesn't. I've checked in a variety of places in the admin, from the node-gallery settings to the content-type settings for gallery_image, looking for someplace where I can set whether or not the title appears, but if there's a setting for it, I can't find it.
Does anyone know if there is any way to make the titles appear under the images when the gallery is viewed as a teaser?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | taxonomy_view.txt | 5.66 KB | spidersilk |
Comments
Comment #1
dbeall commenteddo you have a URL that I can look at.. I get very disoriented about the term teaser when it come to a gallery.. I am not to sure what a gallery teaser is as the term just doesn't describe anything in node gallery that I can see.
I am almost sure one of the tpl files will do what you want, But a URL will show me what I need to know.
Comment #2
spidersilk commentedYes, sorry, I should have included that before!
Here's a page with the galleries showing as teasers: http://write.spidersilk.net/portfolio/brochures
And a page with an individual gallery: http://write.spidersilk.net/portfolio/brochures/cabletest
To clarify the term "teaser": I mean what shows when you look at a listing of several galleries on one page, like in a view. In this case, the view on the brochures page is the default taxonomy term view - i.e. it shows all galleries that have been tagged with the taxonomy term "brochures". And in that view, there are no titles under the images the way there are if you go to the individual gallery pages like the Cabletest page listed above. Does that explanation make more sense?
BTW, the term "teaser" is used explicitly in the node gallery settings - there's a section called "Teaser Setting" on the page at admin/settings/node_gallery/edit/node_gallery_gallery, but it doesn't have anyplace to indicate whether or not titles should be displayed with the images.
Comment #3
dbeall commentedyes, I know the term teaser is used because it's a Drupal term. IMO it should be replaced with something better..
Could you export your view code to a text file and attach it.. please
The image title display is default in everything but views.
If your using fields, it should be in the + fields section for node (node: title), since each image is a node.
Your site looks good, simple, clean, easy to navigate.. I like it
Comment #4
spidersilk commentedThanks - I'm glad you like the site! I'm pretty happy with it thus far... The visual look of it owes a fair bit to sIFR, which I'm rapidly getting hooked on. The ability to use fonts beyond the web standard ones is such a refreshing change!
Here's the code, as generated by the export link on the edit view page. Hope it helps...
BTW, I don't know if I've mentioned this before, but I really, really love Node Gallery. It's more useful even as an alpha release than many modules are in their full release versions, and I don't think I've set up a single gallery using the original Image module since I discovered it. If there's anything I can do to contribute to its evolution, let me know. I don't have much experience with Drupal module development (I'm better with theming, currently), but I can help with testing and that sort of thing.
Comment #5
dbeall commentedHey thanks, I will have a look see at the view.
I have been using sIFR on quite a few sites for a long time.. it is neat. But the problem has been what font to use.. I think my file has 2300 fonts in it now. Web standards has one advantage, limited choice, lol
Comment #6
dbeall commentedI have been messing with the view and a similar set up to yours on my wamp/localtoast, but have not had success..I know what you want and agree it would be nice. I think the views part of the gallery is not as complete as it could be..
I have been thinking maybe some other way to get the title.. like not using views might do it. Haven't got into that yet as I have been working on a client site.. but it's in my mind, thinking up a possible recipe or method as a work around.
Comment #7
dbeall commentedI was thinking to make a cck field and somehow automatically populate it with a mirror of the image title, then the cck field could easily be displayed as it is not tied to the gallery module or the gallery view code.. Just a creative idea. I haven't figured out how to do it yet, maybe with rules.
Comment #8
justintime commentedI've done something similar with computed field before...
Comment #9
dbeall commented@spidersilk, I am back on this with some ideas to work with and a better understanding of the template possibilities for views. I have been reading a bunch of merlin's writings about it.
My problem is that I still can't get the view to work, all I get is a blank page. I have used views for long time, but I have never used a taxonomy/term view because I never could get it to work. I tried several times importing your code and it looks just fine...
If I could get the view to display something, then I can mess with the templates. A template for the view is the way to go from everything I have read. With a template, the $meta_data can be added.
Comment #10
dbeall commentedscratch that, I just got the view to work.. figures, after I tell the world I can't get it working..
I am off to template land. wish me luck
Comment #11
designwork commentedHi dbeall,
did you get some results? Let me know, because I will try to solve this as you wish.
Dirk
Comment #12
dbeall commentedHi Dirk, I haven't solved it yet.. but then, I am new at template work. My thought was to pull the title into the template. The computed field that Justin suggested is a good idea as well. Both methods would pull data.
However, this probably could be solved programmatically with a better views integration that would benefit everyone without jumping through hoops.
I know you are highly skilled at the program part.. maybe you have a better idea and it would be nice to have a 'core' fix for this.
Comment #13
justintime commentedThis should be fixed in NG3 with the tighter views integration. If it still doesn't work in NG3, please reopen.