Feature #30404

Integrate multiple Boilerplate HTML tags

Added by Oliver Hader about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Should have
Start date:
2011-09-28
Due date:
% Done:

100%


Description

The HTML5 Boilerplate template requires some conditional multiple HTML tag definitions which currently cannot be used in TYPO3 (besides using a hook to manipulate the t3lib_pageRenderer behavior).

To still be flexible I was thinking about adding a new possibility config.htmlTag_stdWrap which does what is says - allow stdWrap to the HTML tag.

This would be an example to integrate the flexible Boilerplate tags:

config {
  doctype = html5
  htmlTag_langKey = de

  // Include Boilerplate handling for IE browsers
  htmlTag_stdWrap {
    setContentToCurrent = 1
    cObject = COA
    cObject {
      10 = LOAD_REGISTER
      10 {
        newLine.char = 10
        tagEnd {
          current = 1
          split.max = 2
          split.token = <html
          split.returnKey = 1
        }
      }

      20 = TEXT
      20.value = <!--[if lt IE 7]> <html class="no-js ie6 oldie"{register:tagEnd} <![endif]-->
      20.wrap = |{register:newLine}
      20.insertData = 1
      30 < .20
      30.value = <!--[if IE 7]> <html class="no-js ie7 oldie"{register:tagEnd} <![endif]-->
      40 < .20
      40.value = <!--[if IE 8]> <html class="no-js ie8 oldie"{register:tagEnd} <![endif]-->
      50 < .20
      50.value = <!--[if gt IE 8]> <!--><html class="no-js ie6 oldie"{register:tagEnd} <!--<![endif]-->

      90 = RESTORE_REGISTER
    }
  }
}

30404.patch View - Suggested Patch (899 Bytes) Oliver Hader, 2011-09-28 19:14

History

#1 Updated by Oliver Hader about 8 years ago

#2 Updated by Oliver Hader about 8 years ago

  • Assignee set to Patrick Broens

Any feedback is appreciated.

#3 Updated by Oliver Hader about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:ed780a59b42b39dc85b37a46fb1ba03938ac4ca6.

Also available in: Atom PDF