Teaser does not read input format.
It ignores e.g. the

tag when entered in description.

Comments

StuartMackenzie’s picture

Status: Active » Needs review

I also had this problem, I'm definately no php whizz but managed to fix this after spending an hour or two tearing out my hair and looking thru api docs (which all read gibberish to me), i don't know enough to submit a patch but to fix for me.

There was a function around line 710 which I altered very slightly so it now reads as follows.


function video_view(&$node, $teaser = FALSE, $page = FALSE) {
  $node = node_prepare($node, $teaser); //Run the body through the standard filters.

  // include the video css file
  drupal_add_css(drupal_get_path('module', 'video').'/video.css');
  
  $node->content['body'] = array('#value' => $teaser ? $node->teaser : $node->body); 

  return $node;
}

I have no idea if this is the 'right' approach but it certainly worked for me and hope it works for someone else, or someone with more knowledge can incorporate it into the module or provide a patch.

fax8’s picture

Version: master » 4.7.x-1.x-dev
Status: Needs review » Needs work

you have patched against an older version of the video module.

Please adapt it to the latest version of 4.7 or (better 5.x)

Thanks.

StuartMackenzie’s picture

ok my apologies, I'm using drupal 5 and the module shows as being version HEAD (I downaloded it some time ago-but only just started using), I'll shall get the latest 5 developer snapshot version and If I'm still experiencing the bug will try and submit a proper patch, Sry! still finding my feet and proper protocol!

mark matuschka’s picture

Actually this line can be removed entirely because node_prepare() has already done the assignment and this overwrites it (in v5 anyway):

$node->content['body'] = array('#value' => $node->body);

iLLin’s picture

Status: Needs work » Closed (fixed)