[support] substr and words

Jamie Holly hovercrafter at earthlink.net
Wed May 26 14:26:10 UTC 2010


If you're comfortable making a module, just run the text through the 
node_teaser function in node.module:

node_teaser($body, $format = NULL, $size = NULL)

Set your format to $node->format and set your size to whatever you need.

Jamie Holly
http://www.intoxination.net
http://www.hollyit.net


On 5/26/2010 10:19 AM, Michel Morelli wrote:
> Amit Vyas ha scritto:
> >  By Default you can set the the max characters for your teaser for all
> >  posts by going through admin ->  content ->  node-settings. You will
> >  find Length of trimmed posts there and you can change the trimmed max
> >  characters.
> No, I'm creating a costum block and I need this "trim" only for this block.
>
> M.
>
>    


More information about the support mailing list