Closed (fixed)
Project:
Slideshow Creator
Version:
5.x-1.17
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Apr 2007 at 18:42 UTC
Updated:
25 May 2007 at 06:46 UTC
I found that you can't use commas in the description field. The parser interprets a comma as a field separator, and chops off the rest of the image description.
Perhaps there is is an escape character that I could use? I tried all the standard escaping methods (quotes, backslash, etc.), and none of them worked.
My current workaround is this: In the description field, instead of a comma, I put in the string "#COMMA#". Then, in both theme_slideshow_creator() (in slideshow_creator.module) and in ssc_update() (in slideshow_creator.js), after I get the stored description field, I do a string replacement, replacing "#COMMA#" with ",".
Comments
Comment #1
brmassa commentedBenjamin,
Thanks for you report.
Yes, its not possible to use commas on description, title, URL or any other SsC variables.
I personally dont like to use "#COMMA#" coz it looks like a ugly hack. im thinking in a way to use other characters to separate fields and inteligently detect it.
on 1.18, im working on CCK integration but i might include such feature.
best regards,
massa
Comment #2
Nathan005 commentedIf your interested at all, the HTML for comma is ,
Not as human readable though
For more HTML characters look here
Comment #3
brmassa commentedBenjamin,
now you can use commas: put "\," and it will be converted as a single comma. next release will be fixed
Nathan
html codes will not work since each text on slideshow is decoded as html safe.
best regards,
massa
Comment #4
brmassa commented