E-Mail Digest Modifications

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

E-Mail Digest Modifications

Marc Martin
Hi, I'm experimenting with different amounts of text to be included with email digests.  I see that there is a "digest_html" with the following lines of code:

             <n.trim.truncate. size="200">
                <n.compress.current_node.message.as_text/>
            </n.trim.truncate.> 

So obviously, if I want to increase the amount of characters, I'd increase the "200" to something higher.  But what about leaving the whitespace alone -- that is, not cramming everything together into a few lines?  What changes need to be made for that?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: E-Mail Digest Modifications

Pedro
There are two macros that you can edit digest_html and digest_text. I didn't understand which space are you talking about, could you give me a print?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: E-Mail Digest Modifications

Marc Martin
I think there is a "compress" function in that macro, yes?

So if someone posts a message like:

  "Hello,
 
   How are you?

   I am fine.

   Marc"

In the digest, it ends up looking like this:

  "Hello, How are you? I am fine. Marc"

So I'm just wondering what the macro code would look like to leave the text untouched? (except to truncate it at some point).

Marc
Reply | Threaded
Open this post in threaded view
|

Re: E-Mail Digest Modifications

Pedro
In order to make your message format intact and larger, please, replace your codes with these:
digest_html:
<n.trim.truncate. size="300">
	<n.current_node.node_message_as_html/>
</n.trim.truncate.>
digest_text:
<n.trim.truncate. size="300">
	 <n.current_node.message.as_text/>
</n.trim.truncate.>
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: E-Mail Digest Modifications

Marc Martin
Thanks, that worked!  Although looking at the result, I think I prefer the default look.  :-)