Re: Printing a cetain number of characters

2009-08-03 Thread When ideas fail
thank you, i should have looked at filters. On 3 Aug, 23:42, Jonas Obrist wrote: > use: {{ object.body|slice:":30" }} > > When ideas fail wrote: > > Hi, If i am using something like {{object.body}} is it possible to > > limit the number of characters being printed out. So say you wanted 30 > > c

Re: Printing a cetain number of characters

2009-08-03 Thread Jonas Obrist
use: {{ object.body|slice:":30" }} When ideas fail wrote: > Hi, If i am using something like {{object.body}} is it possible to > limit the number of characters being printed out. So say you wanted 30 > characters, it would print the 30 and ignore the rest. > > Thanks, > > Andrew > > > --~--~

Printing a cetain number of characters

2009-08-03 Thread When ideas fail
Hi, If i am using something like {{object.body}} is it possible to limit the number of characters being printed out. So say you wanted 30 characters, it would print the 30 and ignore the rest. Thanks, Andrew --~--~-~--~~~---~--~~ You received this message because