Page List Teaser in Concrete5.5.2.1

Permalink Browser Info Environment
I have installed the package but nothing shows up of the Page list teasers when I put a page list on the page. Is there something I am missing?

Type: Discussion
Status: New
weiala
View Replies:
weiala replied on at Permalink Reply
weiala
I just tested it in 5.5.0 and it works but not in the newest update. Is there something that is a quick change to make it work with 5.5.2.1 or do I need to roll back to the older version? I am loath to do that - it has caused problems in the past.
jordanlev replied on at Permalink Reply
jordanlev
It should work in 5.5.2.1. Are you saying that you've installed the package via the dashboard, and then you've added a Page List block to a page, then clicked on the block and chosen "Custom Template" from the popup menu, but then you don't see "Teasers" in the list of available templates there?
Or you do have the template successfully chosen but nothing shows up on the page? Or something else?
weiala replied on at Permalink Reply
weiala
Sorry, I wasn't clear. I installed Page List Teaser in the Dashboard, and I would like to have the first block of each block appear, so I put a Page list on the page and checked "truncated" but without putting in a number and then chose "teasers" as the template but all that appears on the page are the titles of the pages. When I did exactly the same process with a version off 5.5.0 the pages show up the way I would like them to.

Here is the proto-site if you want to look at it:http://www.soulfever.de/fbg/index.php?cID=129...

Its not ready for the client yet.
jordanlev replied on at Permalink Reply
jordanlev
Try clearing the site cache (via the Dashboard). Also, is this just a normal block on the page, or are there Global Areas or scrapbooks or Area Layouts involved?
It's very strange that you're choosing the template but it's not showing anything, and I'm not sure why it isn't working.
weiala replied on at Permalink Reply
weiala
It is just a normal block on a normal page. I am stumped. I am trying now to make something work with the blog index template.
jordanlev replied on at Permalink Reply
jordanlev
That is super weird. Did you clear the cache? (Sorry to keep asking this but sometimes that does fix the problem, if you haven't done it already)
weiala replied on at Permalink Reply
weiala
Yes I did but without any change. I agree it is super wierd. Thanks for taking your time!
jordanlev replied on at Permalink Reply
jordanlev
I'm really sorry but I have no idea what the problem could be and I don't know how I could investigate it either.
jem1516 replied on at Permalink Reply
jem1516
Exactly same issues here, only the blog title appears, but no article content whatsoever. Very weird.
jordanlev replied on at Permalink Reply
jordanlev
Is the area on your page that has the content called 'Main'? (That is, does it say "Add to Main" in the dotted line when you're on the page and go into edit mode)?
weiala replied on at Permalink Reply
weiala
On my page the column is called "Content" and it says Add to Content under it.
jordanlev replied on at Permalink Reply
jordanlev
By default, the addon looks for blocks in the 'Main' area. Since your area is called 'Content', then you need to tell the addon to look there instead of 'Main'.

If you're using the latest version of the addon (1.2), you can do this by overriding the custom template to tell it about your 'Content' area, like so:

1) On your server, copy this file:
SITEROOT/packages/page_list_teasers/blocks/page_list/templates/teasers.php

...to here:
SITEROOT/blocks/page_list/templates/teasers.php


2) Edit that new copy of the file, and find this line (should be around line #17):
$teaser = $plth->getPageTeaser($page, 'Main', $teaserBlockCount, $teaserTruncateChars);

...and change it to this:
$teaser = $plth->getPageTeaser($page, 'Content', $teaserBlockCount, $teaserTruncateChars);

(Note that the only thing changed was from 'Main' to 'Content' -- everything else in that line should remain the same).

-Jordan

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.