& supported in Dropdown metadata but not checkboxes?
I've found what I think may be a bug. Whenever I try and use an encoded ampersand in metadata fields I find that the following does not work (i.e., the values don't stick when you submit the changes on the asset):
<checkbox> <item>Admission</item>
<item>Enrollment & Graduation</item>
<item>Fellowship, Assistantship and Financial</item>
<item>Postdoctoral</item> <item>Thesis &
Dissertations</item> <item>Teaching, Writing &
Presentation</item> </checkbox>
Whereas the following does work and will allow ampersands to be saved in metadata:
<dropdown multiple="true">
<item>Admission</item> <item>Enrollment
& Graduation</item> <item>Fellowship,
Assistantship and Financial</item>
<item>Postdoctoral</item> <item>Thesis &
Dissertations</item> <item>Teaching, Writing &
Presentation</item> </dropdown>
Any thoughts as to why the difference? Running version 7.0.2 - 2aa6b of Cascade.
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by chaoaj on 11 Sep, 2012 10:35 PM
Weslung,
Might this need ASCII encoding for the ampersand as &
Regards,
@lvin
------------------------
Alvin Chao IT Web
JMU - MSC 5734 - Massanutten Hall 293
Harrisonburg, VA 22807
540-568-6206
[email blocked]
http://educ.jmu.edu/~chaoaj
2 Posted by Ryan Griffith on 12 Sep, 2012 12:19 PM
Hi,
Thank you for reporting this behavior. I do see that there is a known defect in which using entities for the
&
<
and>
symbols do not behave as expected. I tested in Cascade 7.0.2 and confirmed the issue is still present in newer versions.Please feel free to track the progress of this issue using the link I have provided to see if it has been implemented in a future version of Cascade.
In the meantime, Dropdown and Radio fields are not affected so you could try to replicate the checkboxes using a dropdown with multiple=true to allow more than one selection. If you use the same name and values as the checkbox field, the existing values should map over to the dropdown.
Please let us know if you have any questions.
Thanks.
3 Posted by chaoaj on 12 Sep, 2012 12:42 PM
Ryan,
Is this related to why I can use — but not — for m-dash? I am
seeing this behavior as well within text fields. The lower number
encoding works but not a 4 digit ascii encoding.
Regards,
@lvin
------------------------
Alvin Chao IT Web
JMU - MSC 5734 - Massanutten Hall 293
Harrisonburg, VA 22807
540-568-6206
[email blocked]
http://educ.jmu.edu/~chaoaj
4 Posted by Webslung on 12 Sep, 2012 12:45 PM
@chaoaj,
I have tried every type of character entity I can find for the ampersand and none work. Not sure how it works with dropdowns and radio buttons but doesn't with checkboxes.
@Ryan,
Thanks for the response! Any idea how quick this will get fixed? Seems simple????
5 Posted by Ryan Griffith on 12 Sep, 2012 01:03 PM
Not a problem, my apologies for any inconvenience this may cause. I'm not sure where this issue falls on the timeline, but I can certainly check into it for you.
In the meantime, the multi-select dropdown could be an alternative, perhaps temporary until a fix is released.
Ryan Griffith closed this discussion on 18 Oct, 2012 07:17 PM.