[Answer]-Djangocms-snippet which contains {% %} doesnot show up as placeholder content

1👍

If I’ve got you right, just create custom tag and store templates in database:

from django.template import RequestContext, Template
@register.simple_tag
def footer(request):
    snippet = Snippet.object.get(name='footer')
    template = Template(snippet.html)
    return template.render(RequestContext(request))

{% footer request %}

0👍

use this syntax:

{% url 'terms_conditions' as the_url %}
<a href="{{ the_url }}">Terms and Conditions</a>

0👍

use smartsnippets

These has the capability of rendering django tags

Leave a comment