Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
if a cck datefield is set as x axis, the output shows span tags like this: 11/18/10
This is just in google charts from what i've found using bar chart.
Comment | File | Size | Author |
---|---|---|---|
#11 | withoutTheming.png | 15.8 KB | drudrew |
#11 | withTheming.png | 12.95 KB | drudrew |
#8 | Screenshot.png | 19.23 KB | bverc |
#3 | views_charts.png | 16.78 KB | apmsooner |
Comments
Comment #1
rsevero CreditAttribution: rsevero commentedAnd how do you expect it to be?
Comment #2
apmsooner CreditAttribution: apmsooner commentedSorry i should have input the code tags:
I mean the ouput doesn't look like 11/18/10 when rendered. It looks like
<span class="date-display-single">11/18/10</span>
So what I'm saying is the actual html code is being ouput instead of just the value.
Comment #3
apmsooner CreditAttribution: apmsooner commentedSee attached screenshot for better explanation of the issue please.
Comment #4
rsevero CreditAttribution: rsevero commentedThanks for the info.
Unfortunately I can't reproduce this issue here.
What version are you using? Please test the lastest one: 6.x-1.1.
If this doesn't solve the problem: are you doing some kind of special processing in the date field? Maybe rewriting the output of the field. Try to set the "Strip HTML tags" from the date field in Views.
Comment #5
apmsooner CreditAttribution: apmsooner commentedUsing latest dev version because the 6.x-1.1 download link isn't working yet. nothing tricky here, just default date format, no rewrite output of field, and I've tried stripping the html checkbox and same thing. I guess I'll wait for the 1.1 version download link to work and see if it fixes. Its only happening on google charts by the way. I'd use bluff instead but there are separate issues with those charts that give me additional problems.
Thanks
Comment #6
rsevero CreditAttribution: rsevero commentedThe dev release for tomorrow should be as up to date as the stable release. Please try it if the stable isn't available yet.
You mentioned issues with Bluff. Could you explain them in separate issues?
Comment #7
apmsooner CreditAttribution: apmsooner commentedSure i'll post them but just keep in mind the version i'm on so you may or may not have fixed them.
Comment #8
bverc CreditAttribution: bverc commentedI'm also having this issue in version 6.x-1.1.
Comment #9
akin.demirci CreditAttribution: akin.demirci commentedI had the same issue with Google Charts.
You have to override the date module's theme function that adds the tag around the date value in your own theme's template.php like this:
function YOURTHEMENAME_date_display_single($date, $timezone = NULL) {
return $date . $timezone;
}
Don't forget to flush the theme registry after adding the function.
Comment #10
newnewuser CreditAttribution: newnewuser commentedsub
Comment #11
drudrew CreditAttribution: drudrew commentedTake a look at my screenshots: one without theming, the other with theme's help (thank you, akno)
#9 seems the only viable solution for the time being. Customfield does not work properly, either.
Strip HTML tags should be made to do what it promises to do from a usability point of view. I bet it strips the HTML tags in one of many processing layers. Then, some other layers add some more tags.
Comment #12
jay.lee.bio CreditAttribution: jay.lee.bio commentedSomehow I landed here while searching for a solution for Google Chart Tools. #4 worked for me. Thanks!