Hi!
I'm planing to add an article list to my application. The idea is to show
every article stored in the database but in a truncated way.
So I used the following template tags to produce the list
{% autoescape off %}
{% for article in list_of_articles %}
<div id="articles">
<ul>
<b>{{article.title}}</b>
<li>{{article.body|truncatewords:120}}</li>
</ul>
</div>
{% endfor %}
{% endautoescape %}
But have few questions about how to extend the result.
1. truncatewords filter produces "...", is there a way I can change it to
<a href="url">MORE</a>?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---