Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1328

Implement theme inheritance

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • WW 2.2.2, 2.0.0
    • 2.3.16
    • Plugin - Tags
    • None
    • Patch

    Description

      If you look at one of the xhtml themes, for example, text.ftl, it is hard coded to use the xhtml controlfooter. This poses a problem for overridding the theme.

      Example xhtml/text.ftl:

      <#include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl" />
      <#include "/${parameters.templateDir}/simple/text.ftl" />
      <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
      

      Notice the controlfooter does not use ${parameters.theme} but rather is hard coded to xhtml.

      Attachments

        1. hierarchicial-themes.patch
          34 kB
          David H. DeWolf

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              niko2416 Nick Hill
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: