I have some items in blocks that are displayed via a Views setup. I'd like the nodeteaser to show up instead of the default Drupal teaser, but this doesn't seem to happen.
Is this possible?
Am I missing some key element?
I don't see anything in the Fields area of my Views other than "Node: Body" and I can set that to teaser. Thing is, that is only doing the default Drupal teaser (currently set to 200 chars. in my config).
In other areas, like View created pages, it's working as expected.

Comments

tvs_guy’s picture

Clarification: I'm using a LIST view, not a Teaser view. It seems like the List view should work. The Teaser view works as expected, but the CSS style is a bit oddly done, but I can handle that, I think.

tvs_guy’s picture

Any motion in this direction, or is this outside the scope of NodeTeaser? I guess what I'm looking for is a filter listing of Node:NodeTeaser rather than Node:Teaser, which always looks at the Drupal-global version of the teaser. Thanks!

Quint’s picture

Title: Are Views used in Blocks aware of the nodeteaser? » Subscribing

Quint

Quint’s picture

Title: Subscribing » Are Views used in Blocks aware of the nodeteaser?

Hmmm, I was just trying to subscribe, but I screwed up the title somehow, lets see if this fixes it.
Quint

jenlampton’s picture

Title: Are Views used in Blocks aware of the nodeteaser? » Are Views used in Blocks aware of the nodeteaser?
Component: Miscellaneous » Code

it looks like we need better views integration for this module. Adding a Node:NodeTeaser field to the drop-down in views would be ideal, but i think there's a bigger issue. Loading a node ignores the custom teaser field, and uses the drupal default teasers.

Here's a quick-fix that might help others... To get my custom teasers to show in list views, I just put a call to _nodeteaser_teaser() in my views-list-whatever.tpl.php file. Like so:

<div class="view-field view-data-body">
  <?php $teaser = _nodeteaser_teaser($node);
             print $teaser ?>
</div>

Jen