lib.alt_plaintext.renderObj = USER
lib.alt_plaintext.renderObj.userFunc = user_plaintext->main_plaintext
lib.alt_plaintext.renderObj {
  header.defaultType = 1
  header.date = D-m-Y
  header.datePrefix = |Date: |
  header.linkPrefix = | - Headerlink: |
  header.1.preLineLen = 76
  header.1.postLineLen = 76
  header.1.preBlanks=1
  header.1.stdWrap.case = upper

  header.2 < .header.1
  header.2.preLineChar=*
  header.2.postLineChar=*

  header.3.preBlanks=2
  header.3.postBlanks=1
  header.3.stdWrap.case = upper
  
  header.4 < .header.1
  header.4.preLineChar= =
  header.4.postLineChar= =
  header.4.preLineBlanks= 1
  header.4.postLineBlanks= 1

  header.5.preBlanks=1
  header.5.autonumber=1
  header.5.prefix = |: >> |


  siteUrl = {$plugin.alt.plaintext.siteUrl}
  defaultOutput (
|
[Unrendered Content Element; ###CType### ]
|
  )

  uploads.header = |DOWNLOADS:|

  images.header = |IMAGES:|
  images.linkPrefix = | - Imagelink: |
  images.captionHeader = |CAPTION:|

  bulletlist.0.bullet = |*  |

  bulletlist.1.bullet = |#  |

  bulletlist.2.bullet = | - |

  bulletlist.3.bullet = |>  |
  bulletlist.3.secondRow = |.  |
  bulletlist.3.blanks = 1

  menu = <tt_content.menu.20
  shortcut = <tt_content.shortcut.20
  shortcut.0.conf.tt_content = <lib.alt_plaintext.renderObj
  shortcut.0.tables = tt_content

  bodytext.stdWrap.parseFunc.tags {
    link < styles.content.parseFunc.tags.link
    typolist = USER
    typolist.userFunc = user_plaintext->typolist
    typolist.siteUrl = {$plugin.alt.plaintext.siteUrl} 
    typolist.bulletlist =< lib.alt_plaintext.renderObj.bulletlist
    typohead = USER
    typohead.userFunc = user_plaintext->typohead
    typohead.siteUrl = {$plugin.alt.plaintext.siteUrl}
    typohead.header =< lib.alt_plaintext.renderObj.header
    typocode = USER
    typocode.userFunc = user_plaintext->typocode
    typocode.siteUrl = {$plugin.alt.plaintext.siteUrl}
  }
}



## Insert DMailer Boundaries for all elements.
config.insertDmailerBoundaries = 1

includeLibs.plaintextLib = EXT:statictemplates/media/scripts/plaintextLib.inc

## Set up page/type number:
alt_plaintext >
alt_plaintext = PAGE
alt_plaintext.typeNum=99

alt_plaintext.config.disableAllHeaderCode = 1
alt_plaintext.10 = TEMPLATE
alt_plaintext.10 {
  template = FILE
  template.file = {$plugin.alt.plaintext.file.template}
  marks.CONTENT < styles.content.get
  marks.CONTENT.renderObj = < lib.alt_plaintext.renderObj
  marks.DATE = TEXT
  marks.DATE.data = date:U
  marks.DATE.strftime = %e. %B %Y
}

## Setting up a testpage at type 199
alt_plaintext_test < alt_plaintext
alt_plaintext_test {
  wrap = <pre>|</pre>
  typeNum=199
  config.no_cache=1
}

