Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've upgraded to the latest nightly release.
The day view is showing the event for that day as raw HTML, ie:
27/03/2007 - 18:36
(etc)
Looks like < and > are getting escaped.
Comment | File | Size | Author |
---|---|---|---|
#7 | pearwikifilterproblem.jpg | 136.46 KB | superlou |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedThe day view comes from the function theme_calendar_calendar_node() in calendar.theme and it looks like:
In other words, it's the regular teaser view of your node. If it looks wrong, it's probably because there is something in the way you have the teaser set up in your theme that is a problem.
Comment #2
joachim CreditAttribution: joachim commentedI'm using the built-in theme Garland.
Comment #3
joachim CreditAttribution: joachim commentedThe function theme_calendar_calendar_node() in calendar.theme is the one that's getting executed.
Something is happening to it after that.
If I change line 19 of that file to this:
$node->teaser = 'foo'; #node_view($node, TRUE, FALSE);
then I get the tags escaped.
This seems to be due to input format settigns: I have the PEARWiki filter installed, and set to the default. If I change the default back to filtered HTML, then the day displays correctly. That particular page showing on that day uses the filtered HTML as its input format.
So what's happening is that the day view gets the teaser text, and then puts it through the default input format instead of the format for that page.
Comment #4
joachim CreditAttribution: joachim commentedOk, that didn't work...
This is what I changed the line to:
$node->teaser = '<b>foo</b>'; #node_view($node, TRUE, FALSE);
Comment #5
KarenS CreditAttribution: KarenS commentedI've tried playing around with filters in all kinds of ways on the latest versions of the code (Calendar, Date, and Views) and cannot replicate this problem no matter what I do, so I don't know what to suggest. Try the latest versions. Try a different filter. Try to find something that I could replicate with some of the core filters.
Comment #6
KarenS CreditAttribution: KarenS commentedNo response. Closing.
Comment #7
superlou CreditAttribution: superlou commentedI have the same issue joachim I believe and have attached an screenshot of the output. I too have pearwiki filter installed (set as default). When I set the default filter to "Filtered Html" the nodes render fine and the issue comes back when the filter is reset. Please let me know if there is any more information I can provide to help out.
Comment #8
joachim CreditAttribution: joachim commentedSorry I didn't provide any further information, KarenS. My site succumbed to the blank page of doom and I had to wipe and start again.
Superlou, that looks like exactly what I was seeing.