I've set my trim length to unlimited, but am still seeing a trimmed preview:

Preview trimmed version
D S Installation
Submitted by anne.ramey on Tue, 2006-05-02 13:39. Mail System Documentation

The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "

" (without the quotes) to fine-tune where your post gets split.

Preview full version
D S Installation
....

Now, I understand that you can create a trimmed copy with

, but I don't want to see the trimmed preview. The truely perplexing thing here is that I installed the same version of Drupal with the same modules a couple of weeks ago on my workstation and I don't see the preview for trimmed posts on that copy, just on this new server install. I don't remember turning them off. Any ideas/help would be appreciated.

Anne

Comments

BlackSash’s picture

The teaser is generated every time a node is made and/or updated. If you have made changes to the teaser length (and you don't use the "break" feature) then you'll have to re-submit the node for the new teaser to be generated. In your case, as the length of the entire body text.

-------------------------------
GU d- -p+ c++++ l++ e* m* s+ n+ h+ f? g+ w+++ t- r y?
Madcap - design - development - consultancy
http://www.madcap.nl - Running on Drupal, of course.

anner’s picture

I'm not sure I understand your response...I don't want teasers generated, I've set my length to unlimited for that purpose. What I'm seeing is a blank trimmed preview right before my full preview. My other copy of drupal, which is the same version, doesn't do this, so there must be some way to turn this off. I just don't remember doing it and can't find it again. How can I turn off this previewing of trimmed posts?

Anne

ron_mahon’s picture

I can not find it eighter?
Ron

BlackSash’s picture

Every time you make a new content item ("node" in D-speak). Drupal takes the text you have put in the "body" field of the form, runs that through the filters, and then through a function that generates a teaser. The teaser length is determined by the settings you have changed in the admin pages. This teaser is then saved in the database, alongside the normal body text.

The teaser is _only_ generated when you make a new node, or when you edit an existing one.

It follows, that when you change the teaser settings in admin->content->configure, all the teasers that have already been stored in the database are not changed until you re-submit (that is, edit) the nodes in question.

Clear so far?

All you have to do, is to edit every node where you want the teaser to disappear from. You do not have to actually change anything: just edit and submit will do. The body text will be run through that same function again; but this time nothing will be cut off. Because of that, the teaser will be exactly equal to the normal body text, and will therefore not be shown on the node views, since it might as well just show all the body text.

-------------------------------
GU d- -p+ c++++ l++ e* m* s+ n+ h+ f? g+ w+++ t- r y?
Madcap - design - development - consultancy
http://www.madcap.nl - Running on Drupal, of course.

anner’s picture

No, I've done that. I've edited each node at least once, and I've created new content, but it's still showing up on all pages, including new ones. The trimmed post is empty, but the empty preview of it shows up.

NicoDruif’s picture

Yups, had the same problem here, I wanted it to dissappear too.

I followed the instructions above, and it did work for me... The trimmed preview doesnt show up anymore.

_________________________
www.powertothepixels.nl

anner’s picture

OK, so I go to admininster -> content -> configure and set my length of trimmed posts to "Unlimited" and save configuration. I still get the trimmed preview on all nodes/content, even new nodes, even after I've edited the old nodes. Apparently this is not standard action, but does anyone have any suggestions on how I might fix it or why I might still be seeing the trimmed preview even on new posts?

Kato’s picture

If you have gone through and done everything and then you create a brand new story and it still shows as trimmed on the main page, then my only suggestion would be to uninstall Drupal and reinstall it. That's definately a very odd issue you have there.

http://nglofsalina.com

anner’s picture

OK, I've figured it out what's causing it. I created flexinodes before I changed my trimmed post settings to unlimited. Apparently these content types don't automatically update when I made the change. I've been sifting through my db to see where I can change the flexinode to reflect this change. If I cannot, can I remove/readd the fexinode type without losing content that already exists as this type?

For my flexinodes the teaser contains:
div class="flexinode-body flexinode-1" /div

if I set it to null for existing nodes then edit those nodes, it reappears. I can't figure out yet which flexinode setting controls that. I've tried comparing settings in my db where this happens to the one where it doesn't, but have had no luck yet.

Thanks for all the help so far, hopefully I can get this figured out.

anner’s picture

Ok, I went into the flexinode module and commented out where it puts those div tags into the teaser and it got me my desired results. I do understand that that will probably break teasers if I ever want them, but thats not how we are using the product, so I should be ok.

Thanks again everyone.

BlackSash’s picture

The bane and salvation of node customization.

I did not take those into account i'm afraid, but i'm glad that you got things sorted. :)

Another way of doing things, would be to create a node-flexinode-1.tpl.php (or should that be the flexinode name? I forgot.) and copy the contents of, say, node.tpl.php over into it....

Ehhh scratch that, just copy the node.tpl.php over and rename it to node-flexinode-1.tpl.php of course.

Then edit it, and inside you can use the $content variable to output the body text and such...

Nope, scratch that too... Just checked with my normal node.tpl.php and you'll have to do all sorts of fiddly stuff to only show the normal body text.

In that case I'm all out of ideas... sorry :(

-------------------------------
GU d- -p+ c++++ l++ e* m* s+ n+ h+ f? g+ w+++ t- r y?
Madcap - design - development - consultancy
http://www.madcap.nl - Running on Drupal, of course.

sherkspear’s picture

hello.. just insert <!--break--> on the top of your codes in the body...

leed’s picture

What an easy way to fix the problem!
Thanks.