Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
node system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2010 at 14:48 UTC
Updated:
4 Apr 2016 at 15:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
wouter99999 commentedI solved this by using theme_node_preview
Comment #2
wouter99999 commentedComment #3
winawer commentedno need to use "theme_node_preview".
just go to "Post settings" in address: "admin/content/node-settings" and set "Length of trimmed posts:" to "Unlimited".
by this setting "trimmed version" in preview will gone.
Comment #4
wouter99999 commentedWinawer are you sure? I don't have a node-settings page, only an admin/content page.. I also checked the administration menu and it is not there (using Drupal 7-rc2)
Comment #6
greatmatter commentedIt's been moved...
Go to:
http://YOURSITE.com/admin/structure/types/manage/page/display/teaser
or, if you want to do it the hard way,
Comment #7
djmy commentedi entered "unlimited" and i get this: "Trim length must be a positive integer." This is on the latest drupal 7 version. Anyone have the same issue?
Comment #8
herojig commentedSame here. Frustrating eh?
Comment #9
Mark4 commentedIn version 6.22 go to Administer > Content Management > Post Settings
Set 'Length of trimmed posts' to 'Unlimited'. Then open and save the content you want this to apply to (as these changes only apply to new / updated posts).
Comment #10
mototribe commentedany ideas on how to fix that in D7 (other than using css)?
Comment #11
chrsnlsn commentedI posted a solution using the theme_node_preview here
http://drupal.org/node/1355962#comment-5711632
[edit for 7]
Comment #12
chrisla commentedI think this was originally an issue for D7, not D6.
Is there an equivalent setting for D7 to set the length of trimmed posts to unlimited, as could be done through D6?
Comment #13
sgwood commentedto set the teaser to unlimited go to the teaser version of the page i.e.
YOUR_SITE/admin/structure/types/manage/page/display/teaser
then change the FORMAT dropdown from "Trimmed" to "Default"
to then remove the Read More you will need to not display
it in your CSS like this:
/* remove read more */
li.node-readmore a {
display:none;
}
Comment #14
cheese_monkey commentedThere are two different questions here.
"Teasers" can be disabled in D7 in admin/structure/types/manage/whatever_content_type/display under the "Custom display settings" section.
Unfortunately, even after doing that, previews still show a "trimmed version". There are no controls for its length, nor for teaser length once teasers have been disabled, and D7 only accepts positive integers for lengths.
D7 decides whether to show the trimmed version based only on whether the default HTML matches the teaser HTML, even if you're not showing the teaser. Sigh. You'd think that changing the teaser format to "Default" to match the main format would produce identical HTML, but it still concludes they're different. It doesn't actually matter what the teaser length is set to (I tried 60,000), it still generated "different" HTML when both Default and Teaser were set to default format.
There doesn't seem to be a way to do this in D7 without using a custom theme or custom CSS. :-(
Comment #15
simon147 commentedSumbitted this as a bug.
Comment #16
pasqualleWhat @cheese_monkey said is true, and the problem can be considered a bug in D7, but this problem can be fixed without core changes:
2 possible options explained:
http://drupal.stackexchange.com/questions/7043/override-theme-node-previ...
contrib module (same as the second option on stackexchange):
https://drupal.org/project/no_trimmed_preview
Comment #18
SeanA commentedThis is still a problem. (Why mark this issue as fixed and simultaneously state that it can be considered a bug?) "No trimmed version on preview" seems like a fairly commonly request and it makes sense to put this in core.
The suggested fix (contrib module, which is the same as the 2nd post on Drupal Answers/Stack Exchange) is all-or-nothing: it disables the trimmed version on preview on all node types. And the discussion on Stack Exchange says that this is an evil, hacky solution.
There should be a "Disable trimmed version on preview" checkbox on the edit form for each content type.
Comment #19
rickj commentedI've also just been wrestling with this and come up with a solution that doesn't require messing with themes, but just needs a tiny patch to a core file. In core modules/node/node.pages.inc, make the following change:
Now you can suppress the trimmed preview per-content-type simply by hiding the body field in the teaser view. This assumes that you only don't want to see teaser previews if you don't display them. On content types where I use teasers I like to see the teaser preview so I can tweak the break if needed.
If I understand #14 correctly, this is the solution to that problem (the reason the full-length-teaser and body texts are different is probably the "Read more" at the end of the teaser!).