You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Tony Stevenson (Commented) (JIRA)" <ji...@apache.org> on 2012/01/10 12:28:39 UTC
[jira] [Commented] (INFRA-3850) Issue with multiple extends tags in
CMS
[ https://issues.apache.org/jira/browse/INFRA-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183197#comment-13183197 ]
Tony Stevenson commented on INFRA-3850:
---------------------------------------
Grant,
Can we close this now, please? Or are you still blocked?
> 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