djangosnippets.org: Latest snippets posted by cschandhttps://djangosnippets.org/users/cschand/2009-09-14T04:20:49.036480-05:00cschandActive class for navigation link
2009-09-14T04:20:49.036480-05:00cschandhttps://djangosnippets.org/snippets/1726/<p>Active class for navigation link</p>
<p>{% navclass default current url %}</p>
<pre><code> First argument is the default class and second is the current class
Third argument is the url name(s) of the page
example: <a class="{% navclass leftnav curentnav name1,name2 %}" href="/about/">
</code></pre>
Freely redistributableAdd multiple parameters to the current url
2008-07-01T07:08:55.400556-05:00cschandhttps://djangosnippets.org/snippets/840/<p>Add multiple parameters to the current url.<br />
<strong>Usage:</strong><br />
<code>{% addparam name1 value1 name2 value2 %}</code><br />
or<br />
<code>{% addparam "name1" value1 "name2" value2 %}</code><br /></p>
<pre><code>variable can be use inplace of names and values<br />
example: <br />`{% addparam "view" message.id %}`
</code></pre>
Freely redistributableAdd delete button in admin cp
2008-03-28T04:46:42.150543-05:00cschandhttps://djangosnippets.org/snippets/671/<p>Add delete button on admin control panel to make delete as easy</p>
Freely redistributable