Sometimes it occurs that an article's body is shorter than the default trim length for summariy overviews. I couldn't find a way to set a conditional "read more" link (maybe there is - in this case I'd suggest a UI enhancement to find it ;-)

Wouldn't it be possible to add a checkbox and label input field accompanying the Formatter options?

Formatter: Summary or trimmed
Trim length: 600
[ ] Add 'read more' link
More link text ______________ | o inline | o below
(description:) This will add a more link to every item unless the full item's contents can be displayed within the restrictions

Comments

dawehner’s picture

Status: Active » Closed (won't fix)

No this is impossible at least with views.

This formatters comes directly from drupal core, as well as the settings.
So to add new features here you would have to add a new formatter 'Summary or trimmed extend' or something like this.
This formatter could do everything you need.

There are documentations availible how to create your own formatter.

khawshik_khan’s picture

Yes it is possible to add a read more link point to node. In view add a node title field and in Rewriting section Rewrite the output of title field with your custom text. So now you are rewrite the title text with your custom text and at last check the Link this field to its node.

summit’s picture

Hi,
Did you write your own formatter please?
May be you are willing to share it?
greetings, Martijn

codemode01’s picture

Issue summary: View changes

The Smart Trim Module allows you to display either a summary or trimmed body with an editable "read more" link to the default/full display mode of the node. It's a powerful little tool.