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 00:17:10 GMT

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

Grant Ingersoll commented on INFRA-3850:

David, this doesn't seem to work for me.  Could you take a look, by any chance, at what I
have in http://svn.apache.org/repos/asf/lucene/cms/trunk/  In particular, the Solr subset
of pages (solr.html and solr-simple.html).  I need to exclude the "news" items from the sub
> 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