Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12863

Add T_STYLES_PATH template var

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • 3.1.0-RC2
    • Styles, Template Engine
    • None

      Lets say you want to use template inheritance, but you also want to inherit some CSS or JS files from another template.

      This isn't really possible since INCLUDEJS and INCLUDECSS don't have the same tree traversal properties as INCLUDE html.

      So how do we load assets from another style?

      By using T_STYLES_PATH, we could make it a bit easier to load assets, since we dont have to do all the ../../../other_style/ dir walking.

            nicofuma nicofuma [X] (Inactive)
            PayBas PayBas [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: