www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "#asfinfra IRC Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-3850) Issue with multiple extends tags in CMS
Date Tue, 21 Aug 2012 15:33:38 GMT

    [ https://issues.apache.org/jira/browse/INFRA-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438801#comment-13438801

#asfinfra IRC Bot commented on INFRA-3850:

<danielsh> Can someone please create a instance on the bug somewhere on some CMS site
(eg, on www.a.o in a directory that isn't linked from anywhere (including site map)) --- so
we can easily see when the bug is fixed.  thanks.

> Issue with multiple extends tags in CMS
> ---------------------------------------
>                 Key: INFRA-3850
>                 URL: https://issues.apache.org/jira/browse/INFRA-3850
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CMS
>            Reporter: Grant Ingersoll
>            Priority: Minor
> Multiple Levels of Inheritance
> I have two levels of {% extends %} and it seems the second level is not getting applied.
> I have:
> main.html <- core.html <- core-simple.html
> and in core-simple.html I am overriding a block in that is defined in both main.html
and then overridden in core.html.  However, the core.html value is still being applied.
> main.html:
> {% block news %}
>     <div>{% filter markdown %}{% include "mainnews.mdtext" %}{% endfilter %}</div>
>     {% endblock %}
> core.html:
> {% block news %}
> <div>{% filter markdown %}{% include "../content/lucene/core/corenews.mdtext" %}{%
endfilter %}</div>
> {% endblock %}
> core-simple.html:
> {% extends "core.html" %}
> {#
> No news section
> #}
> {% block news %}
> {% endblock %}
> However, in those items that use core-simple.html template, I still see the results of
core.html.  I am sure the core-simple template is being passed in via my view.pm (in fact,
I printed it out), but it seems that if I actually look at the template being applied, it
is not the core-simple (or whatever else) but one of the other ones in my path::patterns.
 It's almost like Dotiac::DTL::Template is caching/using the old ones regardless of the template
passed in.
> This can be seen on the lucene.staging.apache.org site.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message