content.default

Note that there are two parts: CONSTANTS and SETUP - dont get them mixed up! Read more on that topic here.

  1. ###############################
  2. ########## Constants ##########
  3. ###############################
  4.  
  5.  
  6. # cat=advanced/enable; type=boolean; label=Render content RTE compliant?: When this is set, the content will be rendered with each line wrapped in <p>-tags regardless of using stylesheets or not. This is necessary in order to make the content compliant with the Rich Text Editors align-ment functions.
  7. content.RTE_compliant = 1
  8. content.RTE_compliant.mode = fontwrap
  9.  
  10. content {
  11.     # cat=content/cHeader/h0; type=int[1-5]; label=Default Header type: Enter the number of the header layout to be used by default.
  12.   defaultHeaderType = 1
  13.     # cat=content/cHeader/a; type=wrap; label=Header wrap: This is the wrap around the headers regardless of individual wraps.
  14.   wrap.header = |<br>
  15.     # cat=content/cHeader/h1; type=wrap; label=Header "Layout1"
  16.   wrap.header1 = <font face="verdana" size=3><b> | </b></font>
  17.     # cat=content/cHeader/h2; type=wrap; label=Header "Layout2"
  18.   wrap.header2 = <font face="verdana" size=2 color="red"><b> | </b></font>
  19.     # cat=content/cHeader/h3; type=wrap; label=Header "Layout3"
  20.   wrap.header3 = <font face="verdana" size=4><b> | </b></font>
  21.     # cat=content/cHeader/h4; type=wrap; label=Header "Layout4"
  22.   wrap.header4 = <font face="verdana" size=5><b> | </b></font>
  23.  
  24.   case.header1 =
  25.   case.header2 =
  26.  
  27.   wrap2.header1 =
  28.   wrap2.header2 =
  29.   wrap2.header3 =
  30.  
  31.     # cat=content/cHeader/x; type=wrap; label=Headerdate: The optional date shown above the header
  32.   wrap.headerDate = <font face="verdana" size=1>|:</font><br>
  33.  
  34.     # cat=content/cHeader/s0; type=int[1-3]; label=Default Subheader type: Enter the number of the subheader layout to be used by default.
  35.   defaultSubHeaderType = 3
  36.     # cat=content/cHeader/s1; type=wrap; label=Subheader "Layout 1"
  37.   wrap.subheader1 = <font face="verdana" size=2> | </font>
  38.     # cat=content/cHeader/s2; type=wrap; label=Subheader "Layout 2"
  39.   wrap.subheader2 = <font face="verdana" size=1><b> | </b></font>
  40.     # cat=content/cHeader/s3; type=wrap; label=Subheader "Layout 3"
  41.   wrap.subheader3 = <font face="verdana" size=1 color="navy"><b> | </b></font>
  42.  
  43.     # cat=content/cBullets; type=; label=Bulletlist "Layout 2"
  44.   bulletImages.2 = <img src="media/bullets/mark.gif" vspace="2" hspace="2" border="0">
  45.     # cat=content/cBullets; type=; label=Bulletlist "Layout 3"
  46.   bulletImages.3 = <img src="media/bullets/bullet1_n.gif" vspace="2" hspace="2" border="0">
  47.  
  48.   headerSpace = 0|5
  49.   space = 0|10
  50.  
  51.     # cat=content/cText/b; type=wrap; label=Bodytext wrap: This is the wrap around the whole bodytext part of a content element
  52.   wrap.bodytext = |<br>
  53.     # cat=content/cText/a; type=small; label=Bodytext linebreak: This is the tag used for linebreaks at the end of every paragraph in the bodytext.
  54.   break.bodytext = <br>
  55.     # An alternative body text linebreak code, because this will substitue nl-chars ONLY in the plain bodytext whereas the above will substituted it in all content including the returned content from any typo-tags.
  56.   break.bodytext_parseFunc =
  57.  
  58.     # cat=content/cTable; type=color; label=Tables Cellcolor: The color of the tablecells of ordinary tables
  59.   tableCellColor = silver
  60.   tableCellWrap =
  61.     # cat=content/cSplash; type=color; label="Textbox" Background color: This is the background color of the graphical elements in the "Textbox" content element. Normally set this to the color of the page background
  62.   splash.bgCol = white
  63.     # cat=content/cMenu; type=wrap; label="Menu" content element: Elementwrap for the items in the content element type "Menu"
  64.   menuWrap = <b> | </b>
  65.     # cat=content/cMenu; type=wrap; label="Menu" content element, sub: Elementwrap for the subitems in the content element type "Menu". Used by the links to page-sections.
  66.   subMenuWrap = <b> | </b>
  67.   menuAllWrap = <b> | </b><br>
  68.  
  69.     # cat=content/language; type=; label="To top" Link: HTML-code used to create a link to the top of the page, if that is enabled for a content element
  70.   linkToTop = <a href="#top">To top</a><br>
  71.  
  72.     # cat=advanced/links; type=small; label=Pageframe object: The name of the "contentframe". Normally set to "page" if the site has a frameset. Otherwise it should be an empty value. This is important, as it determines the target of internal links!
  73.   pageFrameObj = page
  74.  
  75.   shortcut.tables = tt_content,tt_address,tt_links,tt_guest,tt_board,tt_calender,tt_products,tt_news,tt_rating,tt_poll
  76. }
  77.  
  78.  
  79. ###############################
  80. ############ SETUP #############
  81. ###############################
  82.  
  83. #
  84. # Object preserved from unsetting after template parsing
  85. # These are meant for referencing
  86. #
  87.  
  88. lib.stdheader = COA
  89. lib.stdheader {
  90.   stdWrap.wrapAlign.field = header_position
  91.   stdWrap.typolink.parameter.field = header_link
  92.   stdWrap.fieldRequired = header
  93.   stdWrap.editIcons = tt_content : header, [header_layout | header_position], [header_link|date]
  94.   stdWrap.editIcons.beforeLastTag=1
  95.   stdWrap.editIcons.iconTitle=Edit header
  96.  
  97.   stdWrap.if {
  98.     equals.field = header_layout
  99.     value = 100
  100.     negate = 1
  101.   }
  102.  
  103.   5 = TEXT
  104.   5.field = date
  105.   5.if.isTrue.field = date
  106.   5.date = d/m Y
  107.   5.wrap = {$content.wrap.headerDate}
  108.  
  109.   10 = CASE
  110.   10.setCurrent {
  111.     field = header
  112.     parseFunc < styles.content.parseFunc
  113.     parseFunc.if.value = 5
  114.     parseFunc.if.equals {
  115.       field = header_layout
  116.       ifEmpty = {$content.defaultHeaderType}
  117.       ifEmpty.override.data = register: defaultHeaderType
  118.     }
  119.     parseFunc.if.negate = 1
  120.   }
  121.   10.key.field = header_layout
  122.   10.key.ifEmpty = {$content.defaultHeaderType}
  123.   10.key.ifEmpty.override.data = register: defaultHeaderType
  124.   10.stdWrap.wrap = {$content.wrap.header}
  125.  
  126.   10.1 = TEXT
  127.   10.1.current = 1
  128.   10.1.fontTag = {$content.wrap.header1}
  129.   10.1.case = {$content.case.header1}
  130.   10.1.wrap2 = {$content.wrap2.header1}
  131.  
  132.   10.2 = TEXT
  133.   10.2.current = 1
  134.   10.2.fontTag = {$content.wrap.header2}
  135.   10.2.case = {$content.case.header2}
  136.   10.2.wrap2 = {$content.wrap2.header2}
  137.  
  138.   10.3 = TEXT
  139.   10.3.current = 1
  140.   10.3.fontTag = {$content.wrap.header3}
  141.   10.3.wrap2 = {$content.wrap2.header3}
  142.  
  143.   10.4 = TEXT
  144.   10.4.current = 1
  145.   10.4.fontTag = {$content.wrap.header4}
  146.  
  147.   10.5 < styles.header.gfx1
  148.  
  149.   stdWrap.space = {$content.headerSpace}
  150. }
  151.  
  152. #
  153. # Configuring of language for backwards compatibility
  154. #
  155. {$comment_DK} config.language = dk
  156.  
  157.  
  158.  
  159. #
  160. # tt_content is started
  161. #
  162. tt_content >
  163. tt_content = CASE
  164. tt_content.stdWrap {
  165.   spaceBefore.field = spaceBefore
  166.   spaceAfter.field = spaceAfter
  167.   space = {$content.space}
  168.   innerWrap.cObject < styles.content.frames
  169.   innerWrap2 = | {$content.linkToTop}
  170.   innerWrap2.fieldRequired = linkToTop
  171.   dataWrap = <a name="{field:uid}"></a>
  172.   editPanel = 1
  173.   editPanel {
  174.     allow = move,new,edit,hide,delete
  175.     line=5
  176.     label = %s
  177.     onlyCurrentPid = 1
  178.     previewBorder=4
  179.     edit.displayRecord = 1
  180.   }
  181. }
  182. tt_content.key.field = CType
  183.  
  184.  
  185. # CType: header
  186. tt_content.header = COA
  187. tt_content.header {
  188.   10 = < lib.stdheader
  189.  
  190.   20 = CASE
  191.   20.stdWrap.fieldRequired = subheader
  192.   20.stdWrap.parseFunc < styles.content.parseFunc
  193.   20.key.field = layout
  194.   20.stdWrap.wrap = | <br>
  195.   20.stdWrap.editIcons = tt_content:subheader,layout
  196.   20.stdWrap.editIcons.beforeLastTag=1
  197.   20.stdWrap.editIcons.iconTitle=Edit subheader
  198.  
  199.   20.1 = TEXT
  200.   20.1.field = subheader
  201.   20.1.fontTag = {$content.wrap.subheader1}
  202.   20.2 = TEXT
  203.   20.2.field = subheader
  204.   20.2.fontTag = {$content.wrap.subheader2}
  205.   20.3 = TEXT
  206.   20.3.field = subheader
  207.   20.3.fontTag = {$content.wrap.subheader3}
  208.  
  209.   20.default < .20.{$content.defaultSubHeaderType}
  210. }
  211.  
  212.  
  213.  
  214.  
  215. # CType: bullet
  216. tt_content.bullets = COA
  217. tt_content.bullets {
  218.   10 = < lib.stdheader
  219.   20 = CASE
  220.   20.setCurrent.field = bodytext
  221.   20.key.field = layout
  222.   20 {
  223.     default < styles.content.bulletlist_gr
  224.     1 < styles.content.bulletlist
  225.  
  226.     2 < styles.content.bulletlist_gr
  227.     2.split.1.wrap = <tr><td valign="top">{$content.bulletImages.2}</td><td valign="top"> | </td></tr>
  228.  
  229.     3 < styles.content.bulletlist_gr
  230.     3.split.1.wrap = <tr><td valign="top">{$content.bulletImages.3}</td><td valign="top"> | </td></tr>
  231.   }
  232.  
  233.   20.stdWrap.editIcons = tt_content:layout, bodytext [text_align | text_face | text_size | text_color],[text_properties]
  234.   20.stdWrap.editIcons.beforeLastTag=1
  235.   20.stdWrap.editIcons.iconTitle=Edit bulletlist
  236. }
  237.  
  238.  
  239.  
  240.  
  241. # CType: table
  242. tt_content.table = COA
  243. tt_content.table {
  244.   10 = < lib.stdheader
  245.   20 = CASE
  246.   20.setCurrent.field = bodytext
  247.   20.key.field = layout
  248.   20 {
  249.     default < styles.content.table
  250.     1 < styles.content.table
  251.     1.split.1.split.1.wrap = <td valign="top" bgColor="{$content.tableCellColor}">|</td>
  252.     1.split.1.split.1.innerWrap = {$content.tableCellWrap}
  253.     1.split.1.split.2.wrap = <td valign="top" bgColor="{$content.tableCellColor}">|</td>
  254.     1.split.1.split.2.innerWrap = {$content.tableCellWrap}
  255.  
  256.     2 < styles.content.table
  257.     2.split.1.split.1.wrap = <td valign="top" bgColor="{$content.tableCellColor}">|</td>
  258.     2.split.1.split.1.innerWrap = {$content.tableCellWrap}
  259.     2.split.2.split.1.wrap = <td valign="top" bgColor="{$content.tableCellColor}">|</td>
  260.     2.split.2.split.1.innerWrap = {$content.tableCellWrap}
  261.  
  262.     3 < .1
  263.     3.split.2.split.1.wrap = <td valign="top" bgColor="{$content.tableCellColor}">|</td>
  264.     3.split.2.split.1.innerWrap = {$content.tableCellWrap}
  265.   }
  266.  
  267.   20.stdWrap.editIcons = tt_content:layout [cols|table_bgColor|table_border|table_cellspacing|table_cellpadding], bodytext [text_align | text_face | text_size | text_color],[text_properties]
  268.   20.stdWrap.editIcons.beforeLastTag=1
  269.   20.stdWrap.editIcons.iconTitle=Edit table
  270. }
  271.  
  272.  
  273.  
  274. # CType: text
  275. tt_content.text = COA
  276. tt_content.text {
  277.   10 = < lib.stdheader
  278.   20 = TEXT
  279.   20 {
  280. #debugFunc = 2
  281.     fieldRequired = bodytext
  282.     wrap = {$content.wrap.bodytext}
  283.     brTag = {$content.break.bodytext}
  284.     field = bodytext
  285.     textStyle < styles.content.textStyle
  286.     parseFunc < styles.content.parseFunc
  287.     parseFunc.nonTypoTagStdWrap.brTag = {$content.break.bodytext_parseFunc}
  288.     editIcons = tt_content:bodytext [text_align | text_face | text_size | text_color],[text_properties], rte_enabled
  289.     editIcons.beforeLastTag=1
  290.     editIcons.iconTitle=Edit bodytext
  291.   }
  292.   20.parseFunc.tags {
  293.     typolist < tt_content.bullets.20
  294.     typolist.stripNL = 1
  295.     typolist {
  296.         // Overriding values:
  297.       key.field >
  298.       key.data = parameters : type
  299.       setCurrent >
  300.       stdWrap.if.isTrue.current = 1
  301.     }
  302.     typohead < lib.stdheader
  303.     typohead.stripNL = 1
  304.     typohead {
  305.       stdWrap.wrapAlign.field >
  306.       stdWrap.wrapAlign.data = parameters : align
  307.       stdWrap.typolink.parameter.field >
  308.       stdWrap.typolink.parameter.data = parameters : link
  309.       stdWrap.fieldRequired >
  310.       stdWrap.if >
  311.       stdWrap.if.isTrue.current = 1
  312.       stdWrap.wrap = <br> |
  313.       stdWrap.editIcons >
  314.       10.key.field >
  315.       10.key.data = parameters : type
  316.       10.setCurrent.field >
  317.       10.setCurrent.current = 1
  318.     }
  319.     typocode = TEXT
  320.     typocode.current = 1
  321.     typocode.htmlSpecialChars = 1
  322.     typocode.br = 1
  323.   }
  324. }
  325.  
  326. # Configures the content for compliancy with the RTE
  327. [globalVar=LIT:0<{$content.RTE_compliant}]
  328.   # Make sure nonTypoTagStdWrap operates on content outside <typolist> and <typohead> only:
  329.   tt_content.text.20.parseFunc.tags {
  330.     typolist.breakoutTypoTagContent = 1
  331.     typohead.breakoutTypoTagContent = 1
  332.     typohead.stdWrap.wrap >
  333.   }
  334.  
  335.   # Processing <table> and <blockquote> blocks separately
  336.   tt_content.text.20.parseFunc.externalBlocks = table, blockquote
  337.   tt_content.text.20.parseFunc.externalBlocks {
  338.       # The blockquote content is passed into parseFunc again...
  339.     blockquote.callRecursive=1
  340.     blockquote.callRecursive.tagStdWrap.HTMLparser = 1
  341.     blockquote.callRecursive.tagStdWrap.HTMLparser.tags.blockquote.overrideAttribs = style="margin-bottom:0;margin-top:0;"
  342.     blockquote.stripNL=1
  343.     table.stripNL=1
  344.     table.HTMLtableCells=1
  345.     table.HTMLtableCells {
  346.       default.callRecursive=1
  347.       addChr10BetweenParagraphs=1
  348.     }
  349.   }
  350.  
  351.     # Setting up nonTypoTagStdWrap to wrap the text with P-tags
  352.   tt_content.text.20.parseFunc.nonTypoTagStdWrap >
  353.   tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines < styles.content.RTE_encaps_{$content.RTE_compliant.mode}
  354.  
  355.     # finally removing the old textstyle formatting on the whole bodytext part.
  356.   tt_content.text.20.textStyle >
  357.   tt_content.text.20.wrap >
  358.   tt_content.text.20.brTag >
  359.  
  360.  
  361.  
  362. # CType: image
  363. tt_content.image = COA
  364. tt_content.image {
  365.   10 = < lib.stdheader
  366.   20  < styles.content.imgtext
  367. }
  368.  
  369.  
  370.  
  371.  
  372. # CType: textpic
  373. tt_content.textpic = COA
  374. tt_content.textpic {
  375.   10 = COA 
  376.   10.if.value = 25
  377.   10.if.isLessThan.field = imageorient
  378.   10.10 = < lib.stdheader
  379.    
  380.   20  < styles.content.imgtext
  381.   20.text.10 = COA
  382.   20.text.10 {
  383.     if.value = 24
  384.     if.isGreaterThan.field = imageorient
  385.     10 = < lib.stdheader
  386.   }
  387.   20.text.20 = < tt_content.text.20
  388. }
  389.  
  390.  
  391. # CType: rte
  392. tt_content.rte = COA
  393. tt_content.rte {
  394.   10 = < lib.stdheader
  395.   20 = TEXT
  396.   20.field = bodytext
  397.  
  398.   20.editIcons = tt_content:bodytext
  399.   20.editIcons.beforeLastTag=1
  400.   20.editIcons.iconTitle=Edit Rich Text content
  401. }
  402.  
  403.  
  404. # CType: uploads
  405. tt_content.uploads = COA
  406. tt_content.uploads {
  407.   10 = < lib.stdheader
  408.   20 = CASE
  409.   20 {
  410.     setCurrent.field = media
  411.     key.field = layout
  412.     default < styles.content.uploads
  413.     1 < styles.content.uploads_icons
  414.     2 < styles.content.uploads_imgicons
  415.     3 < styles.content.uploads_imgicons
  416.     3.split.1.filelink.icon.wrap >
  417.   }
  418.  
  419.   20.stdWrap.editIcons = tt_content:media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding],filelink_size,imagecaption
  420.   20.stdWrap.editIcons.iconTitle=Edit filelist
  421. }
  422.  
  423.  
  424.  
  425.  
  426. # CType: menu
  427. tt_content.menu = COA
  428. tt_content.menu {
  429.   10 = < lib.stdheader
  430.   20 = CASE
  431.   20 {
  432.     key.field = menu_type
  433.  
  434.     default = HMENU
  435.     default {
  436.       special = list
  437.       special.value.field = pages
  438.       1 = TMENU
  439.       1.NO.linkWrap = {$content.menuWrap}
  440.       1.NO.allWrap = {$content.menuAllWrap}
  441.       1.NO.ATagBeforeWrap = 1
  442.       1.target = {$content.pageFrameObj}
  443.     }
  444.  
  445.     1 < .default
  446.     1.special = directory
  447.  
  448.     2 < styles.sitemap.text
  449.  
  450.     3 < styles.insertContent
  451.     3.select.andWhere = sectionIndex!=0
  452.     3.select.pidInList.override.field = pages
  453.     3.renderObj = TEXT
  454.     3.renderObj {
  455.       fieldRequired = header
  456.       trim=1
  457.       field = header
  458.       wrap = {$content.menuWrap}
  459.       typolink.parameter.field = pid
  460.       typolink.section.field = uid
  461.       wrap2 = |<br>
  462.     }
  463.  
  464.     4 < .1
  465.     4.1.NO {
  466.       after.data = field : abstract // field : description // field : subtitle
  467.       after.htmlSpecialChars = 1
  468.       afterWrap = <br>{$content.subMenuWrap}
  469.     }
  470.  
  471.     5 < .default
  472.     5.special = updated
  473.     5.special {
  474.       maxAge = 3600*24*7
  475.       excludeNoSearchPages = 1
  476.     }
  477.  
  478.     6 < .default
  479.     6.special = keywords
  480.     6.special {
  481.       excludeNoSearchPages = 1
  482.     }
  483.  
  484.     7 < .1
  485.     7.1.expAll = 1
  486.     7.1.wrap = |<br>
  487.     7.2 < .7.1
  488.     7.2.sectionIndex = 1
  489.     7.2.sectionIndex.type = header
  490.     7.2.NO.linkWrap = {$content.subMenuWrap}
  491.   }
  492.  
  493.   20.stdWrap.editIcons = tt_content: menu_type,pages
  494.   20.stdWrap.editIcons.iconTitle=Edit linkmenu
  495. }
  496.  
  497.  
  498.  
  499.  
  500. # CType: shortcut
  501. tt_content.shortcut = COA
  502. tt_content.shortcut {
  503. # 10 = < lib.stdheader
  504.   20 = CASE
  505.   20.key.field = layout
  506.   20.0= RECORDS
  507.   20.0 {
  508.     source.field = records
  509.     tables = {$content.shortcut.tables}
  510.     conf.tt_content = < tt_content
  511.     conf.tt_address = < tt_address
  512.     conf.tt_links = < tt_links
  513.     conf.tt_guest = < tt_guest
  514.     conf.tt_board = < tt_board
  515.     conf.tt_calender = < tt_calender
  516.     conf.tt_rating < tt_rating
  517.     conf.tt_products = < tt_products
  518.     conf.tt_news = < tt_news
  519.     conf.tt_poll = < plugin.tt_poll
  520.   }
  521.   20.1= RECORDS
  522.   20.1 {
  523.     source.field = records
  524.     tables = {$content.shortcut.tables}
  525.     conf.tt_poll = < plugin.tt_poll
  526.     conf.tt_poll.code = RESULT,SUBMITTEDVOTE
  527.   }
  528.  
  529.   20.stdWrap.editIcons = tt_content: records
  530.   20.stdWrap.editIcons.iconTitle=Edit recordlist
  531. }
  532.  
  533.  
  534.  
  535.  
  536. # CType: list
  537. # The keys for the CASE-cObject is supplied by including static_templates which is configured to fill out these positions. Examples are "content.tt_products" and "content.tt_calendar"
  538. tt_content.list = COA
  539. tt_content.list.10 = < lib.stdheader
  540. tt_content.list.20 = CASE
  541. tt_content.list.20.key.field = list_type
  542. tt_content.list.20 {
  543.   # LIST element references (NOT copy of objects!)
  544.   3 = CASE
  545.   3.key.field = layout
  546.   3.0 = < plugin.tt_guest
  547.  
  548.   4 = CASE
  549.   4.key.field = layout
  550.   4.0 = < plugin.tt_board_list
  551.   4.1 = < plugin.tt_board_tree
  552.  
  553.   2 = CASE
  554.   2.key.field = layout
  555.   2.0 = < plugin.tt_board_tree
  556.  
  557.   5 = CASE
  558.   5.key.field = layout
  559.   5.0 = < plugin.tt_products
  560.  
  561.   7 = CASE
  562.   7.key.field = layout
  563.   7.0 = < plugin.tt_calender
  564.  
  565.   8 = CASE
  566.   8.key.field = layout
  567.   8.0 = < plugin.tt_rating
  568.  
  569.   9 = CASE
  570.   9.key.field = layout
  571.   9.0 = < plugin.tt_news
  572.  
  573.   11 = CASE
  574.   11.key.field = layout
  575.   11.0 = < plugin.tipafriend
  576.  
  577.   20 = CASE
  578.   20.key.field = layout
  579.   20.0 = < plugin.feadmin.fe_users
  580.  
  581.   21 = CASE
  582.   21.key.field = layout
  583.   21.0 = < plugin.feadmin.dmailsubscription
  584. }
  585. tt_content.list {
  586.   20.stdWrap.editIcons = tt_content: list_type, layout, select_key, pages [recursive]
  587.   20.stdWrap.editIcons.iconTitle=Edit recordlist
  588. }
  589.  
  590.  
  591. # CType: multimedia
  592. tt_content.multimedia = COA
  593. tt_content.multimedia {
  594.   10 = < lib.stdheader
  595.   20 = MULTIMEDIA
  596.   20.file.field = multimedia
  597.   20.file.wrap = uploads/media/
  598.   20.file.listNum = 0
  599.   20.params.field = bodytext
  600. }
  601.  
  602.  
  603.  
  604.  
  605. # CType: splash
  606. tt_content.splash = CASE
  607. tt_content.splash.key.field = splash_layout
  608.  
  609. tt_content.splash.default = COA
  610. tt_content.splash.default {
  611.   20 = CTABLE
  612.   20 {
  613.     c.1 = < tt_content.text
  614.     lm.1 = IMAGE
  615.     lm.1.file {
  616.       import = uploads/pics/
  617.       import.field = image
  618.       import.listNum = 0
  619.       maxW.field = imagewidth
  620.       maxW.ifEmpty = 200
  621.     }
  622.     cMargins = 30,0,0,0
  623.   }
  624. }
  625. tt_content.splash.1 < tt_content.splash.default
  626. tt_content.splash.1.20.lm.1.file >
  627. tt_content.splash.1.20.lm.1.file = GIFBUILDER
  628. tt_content.splash.1.20.lm.1.file {
  629.   XY = [10.w]+10,[10.h]+10
  630.   backColor = {$content.splash.bgCol}
  631.   backColor.override.data = register:pageColor
  632.   format = jpg
  633.   5 = BOX
  634.   5.dimensions = 3,3,[10.w],[10.h]
  635.   5.color = #333333
  636.   7 = EFFECT
  637.   7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
  638.   10 = IMAGE
  639.   10.file {
  640.     import = uploads/pics/
  641.     import.field = image
  642.     import.listNum = 0
  643.     maxW.field = imagewidth
  644.     maxW.ifEmpty = 200
  645.   }
  646. }
  647. tt_content.splash.2 < tt_content.splash.default
  648. tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
  649. tt_content.splash.3 < tt_content.splash.default
  650. tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
  651.   // From plugin.postit1, if included:
  652. tt_content.splash.20 = < plugin.postit1
  653.  
  654. # CType: mailform
  655. tt_content.mailform = COA
  656. tt_content.mailform {
  657.   10 = < lib.stdheader
  658.   20 < styles.content.mailform
  659.  
  660.   20.stdWrap.editIcons = tt_content: bodytext,pages,subheader
  661.   20.stdWrap.editIcons.iconTitle=Edit multimedia element
  662. }
  663.  
  664.  
  665.  
  666.  
  667. # CType: search
  668. tt_content.search = COA
  669. tt_content.search {
  670.   10 = < lib.stdheader
  671.   20 < styles.content.searchresult
  672.   30 < styles.content.searchform
  673.  
  674.   30.stdWrap.editIcons = tt_content: pages
  675.   30.stdWrap.editIcons.iconTitle=Edit search element
  676. }
  677.  
  678.  
  679.  
  680.  
  681. # CType: login
  682. tt_content.login = COA
  683. tt_content.login {
  684.   10 = < lib.stdheader
  685.   20 < styles.content.loginform
  686.  
  687.   20.stdWrap.editIcons = tt_content: pages
  688.   20.stdWrap.editIcons.iconTitle=Edit login element
  689. }
  690.  
  691.  
  692.  
  693.  
  694. # CType: html
  695. tt_content.html = TEXT
  696. tt_content.html.field = bodytext
  697. tt_content.html.editIcons = tt_content: pages
  698. tt_content.html.editIcons.iconTitle=Edit pure HTML content
  699.  
  700. # CType: script
  701. tt_content.script = TEXT
  702. tt_content.script.value =
  703.  
  704. # CType: script
  705. tt_content.div = TEXT
  706. tt_content.div.value =
  707.  
  708. # Default error msg:
  709. tt_content.default = TEXT
  710. tt_content.default.field = CType
  711. tt_content.default.wrap = <b>CTYPE "|" not defined! </b>
  712.  
  713.  
  714. Editor Config
  715. # Setting up the CSS Editor
  716. CSS_editor = Template Styles
  717. CSS_editor.ch {
  718.   BODY = General
  719.   BODY.selector = BODY
  720.   BODY.attribs = font-family, background-color
  721.   BODY.example = Plan text outside of any tags written in the page-body.
  722.  
  723.   A = Links
  724.   A.selector = A
  725.   A.attribs = LINKS,font-weight
  726.   A.example = This is <a href="#">a link to</a> the page top.
  727.   A.exampleStop=1
  728.   A.ch {
  729.     hover = Mouseover links
  730.     hover.selector = + :hover
  731.     hover.attribs = LINKS
  732.  
  733.     active = Active links
  734.     active.selector = + :active
  735.     active.attribs = LINKS
  736.  
  737.     visited = Visited links
  738.     visited.selector = + :visited
  739.     visited.attribs = LINKS
  740.   }
  741.  
  742.   content = < tt_content.CSS_editor
  743. }
  744. tt_content.CSS_editor = General content
  745. tt_content.CSS_editor {
  746.     title.dk = Generelt Indhold
  747. }
  748.  
Download this file: styles.content.default
Last update: 12.10.2005

Did this document help you?

Yes: Write us what helped you

Ok, but: Suggest improvements, report inaccuracies etc.

not helpful: Tell us what would have helped