Closed (won't fix)
Project:
Panels
Version:
5.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2007 at 14:18 UTC
Updated:
19 Aug 2008 at 06:12 UTC
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
Comment #1
nevets commentedThe 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.
Comment #2
merlinofchaos commentedYou 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.
Comment #3
davideyre commentedThanks 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.
Comment #4
merlinofchaos commentedDavid: 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.
Comment #5
gauravkumar87 commented@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...