Re: [Radiant] Looking for something similar to summarize extension for truncating content

2009-01-12 Thread Mohit Sindhwani
Andrew Neil wrote: You could create a custom Radius tag to wrap around the Rails truncate[1] method. Something like this might do the trick: Actually, this method should be written up in the Radiant 2009 Documentation project as a good simple example of bringing in Rails methods into Rad

Re: [Radiant] Looking for something similar to summarize extension for truncating content

2009-01-12 Thread Andrew Neil
You could create a custom Radius tag to wrap around the Rails truncate[1] method. Something like this might do the trick: desc %{ Truncates contents if the number of characters is longer than @length@(defaults to 30). The last characters will be replaced with the @omission@(defaults to "..."). }

[Radiant] Looking for something similar to summarize extension for truncating content

2009-01-11 Thread Roman Marszalek
And wondering how it can be most easily acheived. I'd like to be able to say something like this (obviously not available) And then it displays the fist 30 characters of the page part. Anyone know if there's an easy way to achieve this effect. Thanks, Roman -- Roman Marszalek Managing Dir