Closed (fixed)
Project:
Video
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2007 at 03:48 UTC
Updated:
7 May 2010 at 15:32 UTC
The teaser doesn' t work with the video module.
I tried to configure to teaser length to 300 on the site configuration, it works with the story content-type but it doesn't with the video content-type.
Even the delimiter
doesn' t work with the video module.
So for the moment, the ony solution i found is to create a custom field that i call teaser, insert my teaser in it when i create my node and then modify the node-video.tpl.php to display the teaser field when the page is a teaser.... So many trouble... please help !
Comments
Comment #1
PePiToO commentedup please !
Comment #2
moonray commentedHere is the reason:
in the function
video_view():The following lines mess things up. Why? Because Drupal 5 builds the body and the teaser from the the
$node->contentarray. If you go assigning the full body to$node->content['body']where drupal assumes it's the trimmed down teaser, you run into problems.The next line setting the teaser is pointless, since drupal later overwrites the teaser using the
$node->contentarray.A quick fix is to comment those two lines out.
Comment #3
doc2@drupalfr.org commentedHello,
I understand the principle of Drupal 5 displaying the node body within the teaser. But I don't understand yet how to apply this patch..?
By the way, isn't the teaser problem the result of a "greyed" video field in the "Manage fields" Content type Tab (Administer › Content management › Content types), which is weighted "-10".
See also Enabling "greyed" fields to edit weight (Title, Image, Video or Workflow...): http://drupal.org/node/156937
My teaser image is shown in the teaser view. (Yet the "Teaser image weight" in the Edit type Tab has nothing to do with this "-10" video field weight). But a white space of the size of the FlowPlayer (included as code in the body field) witnesses the inclusion of the player in the teaser view, in plus of the Teaser image. The source code reveals it.
I could neither work it out in the video fields (content type › display fields), nor in ConTemplate.
A body
<!--break-->code, which is supposed to "manually" indicate the end of the teaser within the body field, does not make it. As such, I doubt that it would work to insert a<!--break-->code to a "light-weighted" field, which would come before the video plug-in view... Any suggestion?A trick would be, in the "Tab menu options" fieldset (Administer › Managing content › Video settings), to set to "no" the "Play in node" option, and thus to activate the "Display play menu tab" (same fieldset) or/and (under the "Items to display in the node menu" fieldset) "Display play link".
But this is NOT a convenient solution.
Greetings, Arsène
Comment #4
iLLin commented