On Wed, Dec 10, 2008, CLIFFORD ILKAY <[EMAIL PROTECTED]> wrote: >In your case, you could have something like the following on that >specific page template, or if you need it for the general case, in your >base page template. > >{% block base_css %} >{% if content %} > <link rel="stylesheet" type="text/css" >href="/site_media/css/stylesheeta.css"> >{% else %} > <link rel="stylesheet" type="text/css" >href="/site_media/css/stylesheetb.css"> >{% endif %} >{% endblock %}
Thanks Clifford. I do indeed need it for the general case, because every page has one of four stylesheets (I'm trying to understand the general principle with just two for now). I think I need to amend the if statement you suggest above to pick up the presence or absence of content in {% placeholder right-column Textarea %} - what is it I'm missing here? Daniele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---