Skip to main content

This is a Plone extension for the plone.stringinterp module.

Adding this to your buildout and you will be able to add full content text in content rules e-mail messages.

How to use

When you are preparing e-mail action for your Plone Content Rules you can now use two additional marker in the text:

${text}

The current document full text

${indented_text}

Same as above, but right-indent the text using a tab char before every line.

Text is transformed from HTML to plain text (as ussualy are Plone e-mail).

A mail message rule configured like this:

Hi,

the new document "${title}" has been created.

${text}

…will generate this:

Hi,

the new document "Welcome to Plone" has been created.

If you're seeing this instead of the web site you were expecting...

And a mail message rule configured like this:

Hi,

the new document "${title}" has been created.

${indented_text}

…will generate this:

Hi,

the new document "Welcome to Plone" has been created.

    If you're seeing this instead of the web site you were expecting...

Getting text

“Main text field” is an abstract entity. This product try to guess text using adapters, so you can override or provide more specific ones (see the code some example).

Generally, those kind of text extraction is supported:

  • ATContentTypes based content types with a text field (Event, News Item, Document, Topic)

  • Comment from plone.app.discussion

  • Dexterity content types with a text field

Plus, a general adapter that simply try to read if a “text” attribute is provided.

Credits

Developed with the support of Regione Emilia Romagna; Regione Emilia Romagna supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

1.0.0 (2022-07-14)

  • upgrade to plone 5.2 and python3.8. [reflab]

0.3 (2017-11-07)

  • fix adapter when object dexterity content have completely empty text field. [lucabel]

0.2 (2013-09-06)

  • fix adapter when objects doesn’t have text field (ie Files) [cekk]

0.1.1 (2013-08-02)

  • locales folder was not registered [keul]

0.1 (2013-05-30)

  • Initial release

Release files for collective.stringinterp.text 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.stringinterp.text 1.0.0
File Size Uploaded
collective.stringinterp.text-1.0.0.tar.gz 14.7 kB Details

Release files / collective.stringinterp.text-1.0.0.tar.gz

Download URL collective.stringinterp.text-1.0.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f9e8850719b842f28467475ce1684ee236165dcdad169c5457bd1c330a51a6aa
BLAKE2b-256 checksum
How to use checksums
272a7dc00241776fed39da3e93d33bb024b8f4b86ec940fc42183ddf4ea626c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page