www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-3850) Issue with multiple extends tags in CMS
Date Tue, 31 Jan 2012 02:20:10 GMT

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

Grant Ingersoll commented on INFRA-3850:
----------------------------------------

I think this is still blocked.  The OO example is only one level of extension.  I have two.
 It works fine for 1 level, but not two.
                
> 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

        

Mime
View raw message