Задать вопрос

Тел: +7 965 3737 888

382

Просмотров

0

Ответов

split filter

<p><strong>Usage</strong> (<em>in template</em>):</p>
&lt;img src="{{ MEDIA_URL }}2007/images/{% filter split:","|random %}theimage1.jpg,something2.jpg,thirdisthecharm.jpg{% endfilter %}" /&gt;

<p>I decided to make it simple, because one template creator wanted to add random images to different places of templates. Creating something huge, like external image filename parsing was not necessary in this case.</p>

Вопрос полезен? Да0/Нет0
file_2628.py(136.0б)
None