I have managed to user panels for full node overrides, is it possible to use panels just for teaser override??

Thank you!

Comments

merlinofchaos’s picture

Not with the current system. If you do some development work you probably could come up with something.

pribeh’s picture

Would this mean being able to override teaser text lengths and the like?

I hate Drupal 5's single tier teaser length and dislike having to code a custom_whatever.tpl.php every time I want to change the length of a (set of view) teaser(s).

Doesn't Drupal 6 allow for more than a single teaser length or preset? Could we borrow/learn from Drupal 6 how to implement this into panels. You should know Merlin - I watched your screen-cast.

I can't develop just ask and test... sorry.

merlinofchaos’s picture

Drupal 6 doesn't really do anything different for teasers, I'm afraid.

jerepops’s picture

If I am not mistaken, when you are adding content on drupal 6, you can set where you want the teaser to end by clicking split content at cursor next to the input field.

pribeh’s picture

ya, I design for a community driven content site with no editorial staff. A big portion of the user base doesn't know how to use said features, or even use the provided teaser/summary field. When generating different layouts for teasers to be displayed you want to be able to cut teaser lengths/dimensions for the various content being generated by a huge user base automatically. Especially when you want to vary the manner in which people can navigate websites (ie, publication sites), you want to be able to set numerous teaser lengths/dimensions. Wish someone would come up with a module for it. Maybe I should pay someone to do it. anybody reading this who might know how to do this?

zilla’s picture

teaser by content type? it is a module...but not for d6 yet: http://drupal.org/project/teaserbytype

pribeh’s picture

well, I'm pretty sure droople is looking for something else. Setting up a "teaser by content type" I'm sure is useful for some purposes, but I'd kill for the ability to edit (within a gui) the separate teaser lengths for a single view, one for 'full page' and another for 'block', or simply within a pane when selecting it under 'content'. This would be a killer feature for publication sites.

gpk’s picture

In D6 the teaser generation function http://api.drupal.org/api/function/node_teaser/6 has an argument to allow a specific length to be added. I thought this API addition was for the benefit of Views, but maybe I'm mistaken ...

sun’s picture

Title: how to use panels for teasers » Use panels for node teasers
Version: 5.x-2.x-dev » 6.x-2.x-dev
Component: Miscellaneous » Code
Category: support » feature
reij’s picture

I would really like it if Panels could format the teaser.
I am using panels to format a CCK content type with many fields and it works great. The teaser view, however, just lists all the field values in a plain list. It would be very helpful if I could control the teaser view just like the content view using panels.

BTW, this is a wonderful module.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Panels 2 is no longer available and is unsupported. Marking all Panels 2 issues won't fix.

mikeytown2’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Closed (won't fix) » Active

Does 3.x allow for this?

merlinofchaos’s picture

Hm. No. It'd have to be through some mechanism other than page manager, or perhaps a special function of the node_view task which could allow the display to be used for the teaser. I guess that's actually not that tough.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

IMO, this should probably be a separate module that provides this using the Panels API. It could conceivably try to hook into page manager and offer up its variants for use, even, though it seems unlikely that page variants would really be the same thing you use for teaser variants.

I don't think I would offer this module in Panels itself. It's a neat idea, but has a fairly narrow use case. People would use it, but not many.

Ghostthinker’s picture

+1 really "won't fix" status?

Ghostthinker’s picture

Quick notes on this.
- Theres a module that allows minipanels to be used als views rowstyle plugin. Thats works great.
- For nodereferences I wrote a small module that creates a new formatter "minipanel_teaser". Formatters can't have options, so all I do in the formatter is to look for a minipanel called "%type_node_teaser" and use it for rendering. Otherwise I just print the teaser. Maybe this helps someone.

jon pugh’s picture

Hi all,
Yesterday I created a module that allows using Mini Panels for Teaser Layouts: http://drupal.org/project/panels_teasers

Really straightforward... Create a mini panel, add a required Node context, then visit the Node Type's settings page and select the Mini Panel to use for the teaser under the "Teaser Mini Panel" fieldgroup.

lhernon’s picture

Careernerd: This module is great! Especially love 2.0. Thanks...Laura

MichaelCole’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Closed (won't fix) » Active

Hi, could this be easily implemented in page manager on node_view using "selection rules"?

Seems like the "PHP Code" rule could handle this simply. What would be the good code to detect if a node was being displayed as a whole page, or a teaser?

This could then be added as an option in the dropdown right? Is there a better way to do this?

Mike

MichaelCole’s picture

Project: Panels » Chaos Tool Suite (ctools)
Version: 7.x-3.x-dev » 7.x-1.x-dev
merlinofchaos’s picture

Project: Chaos Tool Suite (ctools) » Panels
Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Active » Closed (won't fix)

Yes, yes the panel teasers module as suggested above. The node_view page handles only the node/% page, not teasers.

See #17. I'm not sure why this issue was re-opened and then moved.

rogical’s picture

see Panels Teasers, there's no D7 version, but we can use display suit for teaser currently.