Closed (outdated)
Project:
Field Slideshow
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2012 at 21:50 UTC
Updated:
21 Jul 2025 at 08:06 UTC
Jump to comment: Most recent
Comments
Comment #1
decibel.places commentedmore info - I am using a field_collection - one image, a text field and a wysiwyg textarea
the only text field available to add is the text field for the caption
here's my hack @ line 587 of field_slideshow.module ( the last 2 lines below before the closing bracket)
so I hard coded the description field appended to the caption - works!
Comment #2
spesso commentedIt's OK but you can do that in a template file insted of hacking the module.
Just copy field_slideshow.tpl.php from module directory inyo your theme directory (named exactly as it is) and you will find exactly same code inside it. You can change it there without hacking the module.
Comment #3
decibel.places commentedit's not exactly the same code in the template, but this works:
after line 15 in field_slideshow.tpl.php:
This adds my custom text field to the caption:
Comment #4
rerooting commentedSo I wanted to do the same thing, but to be able to better control the formatting of the two text fields, so this adaption of #3 worked as well:
Comment #5
rerooting commentedActually it would seem that this solution is more appropriate, in order to hide the elements for empty fields (again, from 15):
Comment #6
r_gauti commented#5 worked for me
thanks
Comment #7
rerooting commentedThere is room for improvement, but I'm not sure where to go next.
Comment #8
jackbravo commentedMaybe adding a second caption directly to the field slideshow configuration (on node display settings)?
Comment #9
idflood commentedI'm just wondering what you think of using entity reference: #1634412: Rendering entire entity
It would be a much more flexible solution and would probably fix the issue highlighted here. On the other hand it is maybe to "heavy" ?
Comment #10
rerooting commentedidflood - love it! #1634412 is a great leap forward (for me, at least)- implementing entity reference support with a submodule for field collection is exactly what I'm looking for.
jackbravo - for the field display settings, I could definitely see that working as a base case. Whether just providing settings for a caption field, or allowing for two seperate (but optional) fields is what the maintainers intend is not something I am certain of, however a patch on this issue that provided that would probably be a way to find out!
Comment #11
rvallejo commentedJust a note here for anyone creating a custom template file, it seems that you need the file in your theme's root folder; putting it in a subfolder (ie. my theme/templates) wasn't working for me.
Comment #12
decibel.places commentedre #11
I think it depends on your theme, where it finds the template files
Comment #13
capellicIs there a better way to do this-- such as through the Manage Display screen where builders can easily add/remove fields from display?
UPDATE: Found what I'm looking for: #1634412: Rendering entire entity
Comment #14
lamp5