While having support for title and description is good in general, in some cases it is better to keep it simple. In my case for example, I want to show only images in my gallery. So complying to the requirements of the module means I have to add two artificial fields to the view and then hide them by editing the CSS.
It would be better to have a configuration option that controls that or even simpler: make the title and description optional and don't generate code for them if a corresponding field is not selected.
Thanks!
Comments
Comment #1
klonosI think that would be a really useful feature. +1
So far, in order to achieve this, I hack the views-galleriffic-view.tpl file and comment the 'caption' line out. Like so:
...nasty workaround, I know (has to be applied each time I upgrade to a new version of VG).
Comment #2
kirilius commentedThat's exactly my point. A little more flexibility will save a lot of work on the long run.
Comment #3
acouch commentedI see why this would be useful. Thank you for reporting it. For now I am not going to implement this. I will try and do this for the D7 version.
Comment #4
kirilius commentedThank you!
Comment #5
mrgoltra commentedsubscribing.
Comment #6
acouch commentedI made updates for the 7.x version. Didn't yet get a chance to add this though. Will do so next time I sit down and work on this.
Comment #7
nasi commentedSubscribing and +1
Comment #8
dirtysteak commented+1
Comment #9
HaloFX commented+1
Comment #10
TimeBandit commentedMaybe this should be a separate comment but that tpl file could be updated as well. Its invalid HTML to use an ID name that is the same as a CLASS name. So, for example, this is invalid HTML:
Also, it may be best to make the the ID and CLASS something less likely to collide with other CSS -- "slideshow", "gallery", "controls", etc. are all fairly likely CSS ID/CLASS names to be used by other modules, etc. Maybe use ID and CLASS like...
Comment #11
klonos+1 for what John says in #10. We should avoid using generic names for variables/IDs/classes etc. This should be a general practice (something like the drupal coding standards) in all contrib modules/themes and generic names should be reserved for core.
Comment #12
acouch commentedI'll get to this within the next couple of weeks.
Comment #13
acouch commentedI've implemented this along with the suggestion in #10
Comment #14
AndrewS commentedHeya,
Apologies - but did this make it to the 2011-Aug-08 dev release?
Can't seem to locate this feature.
Cheers,
A
Comment #15
acouch commentedThis is in the latest dev release as well as the new 1.0 release.
When selecting the "Galleriffic Fields" you'l notice Title and Description are optional.
Comment #16
kirilius commentedThanks!