Preview Full/Preview trimmed confusion

kelmadics - May 9, 2008 - 16:16

Hello,

I am fairly new to Drupal and I am getting familiarize with its architecture.
I am trying to clean up my taxonomy pages but I am confused with one thing.
I have some pages with long stories appear in the taxonomy pages without being trimmed
but some of the shorter pages appeared to be trimmed. How does drupal determine
if it wants to trim the page or not. I am using fckeditor and wonder if this module
is the problem

*using drupal 5.*

Thanks in advance.

hmmm? anyone help?

kelmadics - May 9, 2008 - 16:34

hmmm? anyone help?

The maximum allowable length

gpk - May 9, 2008 - 17:08

The maximum allowable length of a trimmed post (teaser) is set in admin -> content management -> post settings.

However the algorithm is not that great and sometimes trims posts much shorter than this.

gpk
----
www.alexoria.co.uk

I see. I am aware of that

kelmadics - May 9, 2008 - 17:23

I see. I am aware of that setting though but the weird thing is some of the LONG
pages are not being trimmed at all and some much shorter ones are being trimmed.
This is the reason I am confused on how the script determines if a page is qualified for trimming
and how it trims it like does it exclude php or html tags in the word/letter count? can someone direct
me to the module or algorithm in where this script is located in the drupal core.

much thanks!

http://api.drupal.org/api/fun

gpk - May 9, 2008 - 19:21

http://api.drupal.org/api/function/node_teaser/5

Also note that if you change the setting then you have to re-save your nodes for the change to take effect on existing nodes, or use the "retease" module.

gpk
----
www.alexoria.co.uk

 
 

Drupal is a registered trademark of Dries Buytaert.