Needs review
Project:
Highslide
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2010 at 12:37 UTC
Updated:
28 Nov 2010 at 22:08 UTC
I created a new, own Highslide formatter called hs_news. In the node type edit page I have a image field. In the Insert section I can only activate "highslide_full" or "highslide_thumb"; nothing more.
Before I created my own formatter, I saw the "Highslide Default (Zoom) formatter too.
Where is the problem?
Comments
Comment #1
q0rban commentedHmm, good question. Have you tried out 6.x-1.x-dev to see if the problem you are running into has been fixed in that version?
Comment #2
mawosch commentedEven with dev Version there is no custom formatter shown.
Comment #3
q0rban commentedOk, thanks. I've not run into this yet, so if you can, try digging more into the code to see if you can figure out the problem. Devel's
dsm()is your friend. :)Comment #4
mawosch commentedNo I played a bit with Highslide.
I have my own Highslide formatter in the Insert section of the node-type only when I activate "Image Description" in "Caption contents: " Field.
As soon as I switch to "Image Title" (what I want) the Highslide formatter is no longer shown in Node-Type area.
Hope that helps you a bit.
Comment #5
q0rban commentedGreat, thanks for doing the extra work of troubleshooting that!
:)
Comment #6
q0rban commentedOk, well, I found where this was stemming from. Basically, when I first wrote the insert implementation, the only field that worked with Insert was the description field, so I required the formatter to have that field if it be used as an Insert formatter. Now, even the description field doesn't work. I think this is something that has changed in Insert or possibly Imagefield.
Either way, I've made it so that Image Description, Title, or Alt text can be used as a caption for an Insert formatter, however, you will have to save the node before these fields will actually get used in the insert, so I'm not sure this is much help. This is due to limitations in Insert, not an issue with Highslide's implementation. If you want that to change, you might search for a related issue on Insert's issue queue, and if there isn't one, open it. If you do end up going that route, please link to that issue in here, if you don't mind. :)
Here's the commit with the fix:
http://drupal.org/cvs?commit=411410
Comment #8
astro75 commentedIt's not necessary to save node before using insert with Title or Alt text. Here is my new highslide_insert_content() function with two lines inserted