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
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 "...").
}
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