I'm no doubt overlooking something extremely simple here...

I've used the (excellent) Panels module to redesign the frontpage of my websites. I basically create a new page in Panels called frontpage2, then make that the default front page in Administer > Site Information.

It works fine here: www.g41.org.uk

But on my other site the trimmed posts function doesn't seem to work: http://www.southsidemedia.org/g42/frontpage2

Anyone have any suggestions?

Many thanks!

Comments

nevets’s picture

The general problem is with how Drupal trims posts. I does the trimming strictly on length of characters as does not take into account html tags. You might want to try htmltidy which allows you to clean up the html on posts. It may help on your case but not completely as I have noticed for posts with embedded video the trim length can be short enough to truncate the embedded code and while htmltidy will add missing closing tags it can not repair incomplete tags.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

You can also, somewhere in the administration settings (sorry, I forget where exactly) reduce the length of the posts to trim. You can also insert a <!--break--> directly into your post to get the teaser to be exactly where you need it.

In any case, this isn't really Panels' fault.

davideyre’s picture

Thanks folks. Sorry, I should have explained that I do use the

tag. It just seems that it's not being recognised in the new front page for some reason.

merlinofchaos’s picture

David: Panels doesn't trim posts by itself, so you'll have to explain what content you've put in your panel that you're expecting the posts to be trimmed.

gauravkumar87’s picture

@merlinofchaos
i have the same problem.. when i display a content field from "node context" and set to be shown as TRIMMED i jus end up seeing the entire field's content...