Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Nov 2010 at 02:29 UTC
Updated:
14 Sep 2014 at 12:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
derjochenmeyer commentedThe message is set in modules/node/node.pages.inc:390
Attached patch changes the message to:
The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. For content types that display a "Long text and summary" field (such as Body), you can insert the delimiter "
<!--break-->" (without the quotes) to fine-tune where your post gets split.Comment #2
derjochenmeyer commentedComment #3
derjochenmeyer commentedForgot a space.
Comment #4
derjochenmeyer commentedAnd a typo :-/
Comment #5
derjochenmeyer commentedGetting there...
Comment #6
derjochenmeyer commentedThis should be it...
Comment #7
shyamala commentedThe Patch works!
But we should not display this message when the content type has no 'Long text and summary' or 'Body' field.
Comment #8
derjochenmeyer commentedIn my oppinion this message is sufficient.
The first part
"trimmed" does not only refer to a trimmed body field, but also to other fields that may be displayed or not in $full or $teaser
The second part
This is a usefull hint for users.
Its also not easy (as far as I can tell) to check for a "Long text and summary" field in theme_node_preview(). It's not enough to check for $node->body because any other (or multiple fields) can be "Long text and summary".
Comment #9
derjochenmeyer commentedHere is a method to check if the content type uses a "Long text and summary" field.
But that would not be enough to determine if the message makes sense. We would also need to check if the node type actually displays the trimmed version of this field in the Teaser view.
I still think the simple message in #6 is sufficient.
Comment #10
10basetom commentedI think the "Preview trimmed" post notice should NOT be displayed when these two criteria are met:
1. Field type = Long text (Manage Fields tab)
2. Teaser = UNchecked (Manage Display tab under "Custom Display Settings")
With this setup, the full content is always shown on the main page, so the "<!-- break -->" option is irrelevant in this context. Removing this post notice when it's not relevant = better user experience and less content pushed below the fold.
Comment #11
nagiek commentedIs this still active? Been a while...
Comment #12
Anonymous (not verified) commentedThis is still an issue. I don't think that changing the message will help users who don't get this though. Maybe it should check to see whether there are any long text with summary fields on the bundle.
Comment #13
nagiek commentedThat's exactly what it should do.
Comment #14
Anonymous (not verified) commentedOk, switching to needs work then.
Comment #15
jenlamptonChanging to 8.x since changes need to be done there first.
Also, I'm not sure the "promoted to the main page" remains relevant for many Drupal sites - or in Drupal 8 where /node can be turned off!
Additionally, I don't think we should encourage anyone to use the teaser break (since it won't work) until this issue gets resolved:
#881006: Regression: 'break' tag doesn't work with Filtered HTML
Comment #16
cweagansUpdating tags per http://drupal.org/node/1517250
Comment #17
swentel commentedDrupal 8 preview doesn't have this problem anymore