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.

CommentFileSizeAuthor
#7 pearwikifilterproblem.jpg136.46 KBsuperlou
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

Status: Active » Fixed

The day view comes from the function theme_calendar_calendar_node() in calendar.theme and it looks like:

   // Display the regular teaser view for local events.
   if (!$node->remote && $type == 'calendar_node_day') {
     $node = node_load($node->nid);
     $node->teaser = node_view($node, TRUE, FALSE);
     $node->title = '';
   }

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.

joachim’s picture

I'm using the built-in theme Garland.

joachim’s picture

Status: Fixed » Active

The 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.

joachim’s picture

Ok, that didn't work...

This is what I changed the line to:

$node->teaser = '<b>foo</b>'; #node_view($node, TRUE, FALSE);

KarenS’s picture

Status: Active » Postponed (maintainer needs more info)

I'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.

KarenS’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No response. Closing.

superlou’s picture

FileSize
136.46 KB

I 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.

joachim’s picture

Sorry 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.