I'm trying to set the break point for the teaser on a flexinode textarea but it doesn't seem to want to work.

I don't think it's a problem with my filters as other node type are working fine, so is it a problem in flexinode?

Comments

darius’s picture

See the discussion at http://drupal.org/node/22788

Darius

Steve Dondley’s picture

Status: Active » Needs review
StatusFileSize
new6.47 KB

Here's a patch to the flexinode.module and field_textarea.inc files to resolve this problem.

Special note: This patch adds a checkbox to the textarea field editing form to make truncation of the data optional. Therefore, it requires a new int(1) field, called 'truncate', be added to the flexinode_field table in the database.

Steve Dondley’s picture

StatusFileSize
new0 bytes

After some more thought, I couldn't really think of a reason why a textarea wouldn't want to truncate its output when viewed in the teaser. So I don't think there is a good reason for making truncation optional. So here's a much simpler patch. It requires no update to the database.

Bèr Kessels’s picture

/that/ is a patch i like :) can we mark this won't fix then?

Steve Dondley’s picture

StatusFileSize
new0 bytes

Don't know what happened there. Trying again.

Steve Dondley’s picture

StatusFileSize
new0 bytes

Huh. One more time, with preview.

Steve Dondley’s picture

StatusFileSize
new2.42 KB

trying once more, without samba connection

jiggonaut’s picture

I have applied this patch and noticed that instead of the Image only a text link to the Image (with the filesize in breaks) is shown in the teaser. Can you confirm this?

Steve Dondley’s picture

I'll check it out. Remind me in a couple of days if you don't hear back from me.

jiggonaut’s picture

Strange! Now (with a new installation of Drupal- and the same patch) everything works fine. Sorry for the confusion... and thanks for this patch. It is very helpfull.