styles.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. # Clear out any constants in this reserved room!
  6. styles.content >
  7.  
  8.     # cat=advanced; type=int+; label= News Content PID: If your template has a column with "news"-content fetched from another page-id, this is where you enter the id-number of that page!
  9. styles.content.getNews.newsPid = 0
  10.  
  11. styles.content.lastUpdate {
  12.   format = H:i d/m Y
  13.     # cat=page//lastupdate; type=; label= Label for "Last update": Last update is shown in the bottom of the page if the "Last update" date entry is set for the page record.
  14.   label = Last update:
  15.     # cat=page//lastupdate; type=wrap; label= Wrap for "Last update"
  16.   wrap = <br><font size=1 face="arial,helvetica">|</font><br>
  17.     # cat=page//lastupdate; type=comment; label= Automatic "Last update": Click this option, if you want to automatically show "Last update" on the page.
  18.   comment_auto = #
  19. }
  20.  
  21. styles.content.typo3_powered {
  22.     #cat=advanced; type=options[,1,2]; label="Typo3 Powered By" Logo: Select which - if any - Typo3 logo will be displayed in the bottom of the page.
  23.   number = 2
  24. }
  25.  
  26. styles.content.textStyle {
  27.     # cat=content/cText/f1; type=small; label= Bodytext font
  28.   face =
  29.     # cat=content/cText/f2; type=int[1-5]; label= Bodytext size
  30.   size =
  31.     # cat=content/cText/f3; type=color; label= Bodytext color
  32.   color =
  33.   color1 =
  34.   color2 =
  35.   properties =
  36.     # cat=content/cText/f4; type=wrap; label= Alternative wrap: This could be used to wrap the bodytext in <div>-tags if you would like to use a stylesheet instead
  37.   altWrap =
  38. }
  39. styles.content.tableStyle {
  40.     # cat=content/cTable; type=color; label= Tables background color
  41.   color =
  42.   color1 =
  43.   color2 =
  44.   alignField =
  45. }
  46. styles.content {
  47.     # cat=content/cTable; type=wrap; label= Alternative wrap: This could be used to wrap the table content in <div>-tags if you would like to use a stylesheet instead
  48.   table.altWrap =
  49.     # cat=content/cBullets; type=wrap; label= Alternative wrap: This could be used to wrap the bullet list items in <div>-tags if you would like to use a stylesheet instead
  50.   bulletlist.altWrap =
  51. }
  52.  
  53. styles.content.links {
  54.   keep = path
  55.     # cat=content/links; type=small; label= Target for external links
  56.   extTarget = _blank
  57.   target = {$PAGE_TARGET}
  58.     # cat=content/links; type=wrap; label= Wrap for links in text
  59.   wrap =
  60.   allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span
  61.     # cat=content/cSearch; type=wrap; label= Searchwords markup: Wrap for markup of search-words in text upon a search.
  62.   sword = <font color="red"><b>|</b></font>
  63. }
  64. styles.content.uploads {
  65.   # cat=content/cUploads; type=wrap; label= Wrap: Wrap for content element "Filelinks"
  66.   wrap = <b> | </b>
  67.   labelWrap =
  68.   sizeWrap =
  69.   tdWrap = <td> |</td>
  70.   # cat=content/cUploads; type=wrap; label= Wrap, description: Wrap for the description of content element "Filelinks". If this is NOT set, the description will not shown up.
  71.   descriptionWrap =
  72.   jumpurl_secure =
  73.   jumpurl_secure_mimeTypes = pdf=application/pdf, doc=application/msword
  74.   jumpurl =
  75. }
  76.  
  77. styles.content.frames {
  78.   ruler.lineColor = black
  79.   ruler.lineThickness = 1
  80.   ruler.before = 10
  81.   ruler.after = 10
  82.   padding = 10
  83.   indent = 30
  84.     # cat=content//; type=color; label= Frame 1 background color: Set the background color of the content element frame "frame1".
  85.   1.bgCol = silver
  86.     # cat=content//; type=color; label= Frame 2 background color: Set the background color of the content element frame "frame2".
  87.   2.bgCol = silver
  88.     # cat=content//; type=color; label= Frame 2 border color: Set the border color of the content element frame "frame2".
  89.   2.borderCol = black
  90.   2.borderThickness = 2
  91.  
  92.   33_66cell = <td width=33%><img src="clear.gif" width=1 height=1></td>
  93. }
  94. styles.content.imgFrames {
  95.     # cat=advanced; type=color; label= Image Frame BgColor: Set the background color of the image frames. Should match the background of the page.
  96.   bgCol = white
  97.   bottomCol = black
  98.     # cat=advanced; type=options[darkroom,artist]; label= Image Frame Collection: Sets which framecollection is used to frame images.
  99.   frameCollection = darkroom
  100.     # cat=advanced; type=comment; label= Image Frame underlay: Set this flag to disable the black frame underlay.
  101.   comment_bottom =
  102.   path = media/frames/
  103. }
  104. styles.content.imgtext {
  105.     # TIP! if register[maxImageWidth] is set, this will override maxW
  106.     # cat=content,basic/cImage/a_maxw1; type=int+; label= Max Image Width: This indicates that maximum number of pixels (width) a block of images inserted as content is allowed to consume.
  107.   maxW = 600
  108.     # cat=content/cImage/a_maxw2; type=int+; label= Max Image Width (Text): Same as above, but this is the maximum width when text is wrapped around an imageblock. Default is 50% of the normal Max Image Width
  109.   maxWInText =
  110.     # cat=content/cImage/b; type=color; label= Image border color: Bordercolor of images in content elements when "Border"-option for element is set.
  111.   borderColor = black
  112.     # cat=content/cImage/b; type=int[0-100]; label= Image border thickness: Thickness of border around images in content elements when "Border"-option for element is set.
  113.   borderThick = 2
  114.     # cat=content/cImage/x; type=int[0-100]; label= Advanced, Column space: Horizontal distance between images in a block in content elements of type "Image" or "Text w/Image".
  115.   colSpace = 10
  116.     # cat=content/cImage/x; type=int[0-100]; label= Advanced, Row space: Vertical distance between images in a block in content elements of type "Image" or "Text w/Image".
  117.   rowSpace = 10
  118.     # cat=content/cImage/x; type=int[0-100]; label= Advanced, Margin to text: Horizontal distance between an imageblock and text in content elements of type "Image" or "Text w/Image".
  119.   textMargin = 10
  120.   linkWrap.width = 800m
  121.   linkWrap.height = 600m
  122.   linkWrap.effects =
  123.     # cat=content/cImage/x; type=boolean; label= Advanced, New window: If set, every click-enlarged image will open in it's own popup window and not the current popup window (which may have a wrong size for the image to fit in)
  124.   linkWrap.newWindow = 0
  125.     # cat=content/cImage/c; type=wrap; label= Images, caption: Wrap around the caption of imageblocks.
  126.   captionWrap = <font face="verdana" size=1><b> | </b></font>
  127.     # cat=content/cImage/c; type=boolean; label= Images, caption split: If this is checked, then the image caption will be split by each line and they will appear underneath the corresponding image in the imagelist.
  128.   captionSplit = 0
  129.   target = {$PAGE_TARGET}
  130.   comment_CSL-LinkList = #
  131. }
  132. styles.content.mailform {
  133.   fieldWrap =
  134.   labelWrap =
  135.   commentWrap =
  136.   radioWrap =
  137.   REQ.labelWrap =
  138.   border=5
  139.   target = {$PAGE_TARGET}
  140.     # cat=content/cMailform; type=; label= Message, Formmail OK: This is the message (if any) that is popped-up (JavaScript) when a user clicks "send" with an email-form
  141.   goodMess =
  142.     # cat=content/cMailform; type=; label= Message, Formmail Missing: This is the message that is popped-up when a user has NOT filled required fields in an email-form
  143.   badMess =
  144.   comment_type2 = #
  145. }
  146. styles.content.loginform {
  147.   target = _top
  148.     # cat=content/cLogin; type=int+; label= PID of user archive: Enter the page-uid number (PID) of the sysFolder where you keep your fe_users that are supposed to login on this site. This setting is necessary, if login is going to work!
  149.   pid =
  150.     # cat=content/cLogin; type=; label= Message, Login: This is the message (if any) that is popped-up when a user logs in as a front-end user
  151.   goodMess =
  152. }
  153. styles.content.searchform {
  154.     # cat=content/cSearch; type=; label= Message, Searchform: This is the message (if any) that is popped-up when a user performs a search
  155.   goodMess =
  156. }
  157. styles.content.columns {
  158.   totalWidth =
  159.   gapWidth = 10
  160.   gapLineThickness = 1
  161. }
  162. styles.content.searchresult {
  163.   face = Verdana
  164.   size = 1
  165.   color = navy
  166.   head.face = Verdana
  167.   head.size = 2
  168.   head.color = black
  169.   target = {$PAGE_TARGET}
  170.   resultTarget = {$PAGE_TARGET}
  171.   header.wrap = <font face="verdana" size=2><b> | </b></font>
  172.   header.bgCol = silver
  173. }
  174. styles.content.meta {
  175.   # cat=page; type=; label= META-tag description: Enter a general description for the site. Will appear on all pages in addition to page-specific descriptions.
  176.   site_description =
  177.   # cat=page; type=; label= META-tag keywords: Enter general keywords for the site. Will appear on all pages in addition to page-specific keywords.
  178.   site_keywords =
  179. }
  180.  
  181.   # cat=page/language; type=comment; label= DK language: Set this value to enable Danish labels on Form- and Search-objects. "" = Danish, "#" = (Default)
  182.   # cat=
  183. comment_DK = #
  184.  
  185.   # cat=advanced/links; type=small; label= Target for internal links: Should match the name of the content PAGE-object in TypoScript when used with frames. Most cases: Set to "page" if you have frames in the template. If not, set to "" (empty)
  186. PAGE_TARGET = page
  187. Setup
  188. # Clear out any constants in this reserved room!
  189. styles.content >
  190.  
  191.   # get content
  192. styles.content.get = CONTENT
  193. styles.content.get {
  194.   table = tt_content
  195.   select.orderBy = sorting
  196.   select.where = colPos=0
  197.   select.languageField = sys_language_uid
  198. }
  199.  
  200.   # get content, left
  201. styles.content.getLeft < styles.content.get
  202. styles.content.getLeft.select.where = colPos=1
  203.  
  204.   # get content, right
  205. styles.content.getRight < styles.content.get
  206. styles.content.getRight.select.where = colPos=2
  207.  
  208.   # get content, margin
  209. styles.content.getBorder < styles.content.get
  210. styles.content.getBorder.select.where = colPos=3
  211.  
  212.   # get news
  213. styles.content.getNews < styles.content.get
  214. styles.content.getNews.select.pidInList = {$styles.content.getNews.newsPid}
  215.  
  216.   # std bodyTag.
  217.   # NOTE: These constants inserted are NOT defined in the constants-field of this template!!
  218. styles.content.bodyTag = <body bgColor="{$bgCol}" link="{$link}" vlink="{$vlink}" alink="{$alink}">
  219.  
  220.   # std metaTag
  221. styles.content.meta {
  222.   KEYWORDS.data = page: keywords
  223.   KEYWORDS.keywords = 1
  224.   KEYWORDS.wrap = |,{$styles.content.meta.site_keywords}
  225.   KEYWORDS.htmlSpecialChars = 1
  226.   DESCRIPTION.data = page: description
  227.   DESCRIPTION.trim = 1
  228.   DESCRIPTION.wrap = |. {$styles.content.meta.site_description}
  229.   DESCRIPTION.htmlSpecialChars = 1
  230. }
  231.  
  232.   # std last updated
  233. styles.content.lastUpdate = TEXT
  234. styles.content.lastUpdate {
  235.   data = page:lastUpdated
  236.   if.isTrue.data = page:lastUpdated
  237.   date = {$styles.content.lastUpdate.format}
  238.   wrap = {$styles.content.lastUpdate.label}&nbsp;&nbsp;|
  239.   wrap2 = {$styles.content.lastUpdate.wrap}
  240.   {$styles.content.lastUpdate.comment_auto} data = register : SYS_LASTCHANGED
  241.   {$styles.content.lastUpdate.comment_auto} if >
  242. }
  243. styles.content.typo3_credit = TEXT
  244. styles.content.typo3_credit {
  245.   value = This site is dynamicly generated by Typo3 CMS - freely available from <a href="http://www.typo3.com" target="_blank">www.typo3.com</a>!
  246.   lang.dk = Dette website er dynamisk genereret af Typo3 CMS - frit tilgūngeligt fra <a href="http://www.typo3.dk" target="_blank">www.typo3.dk</a>!
  247.   wrap = <br><br><font face="arial" size=1 color="black"> | </font><br><br>
  248. }
  249. styles.content.typo3_powered = IMAGE
  250. styles.content.typo3_powered{
  251.   file = media/uploads/typo3power{$styles.content.typo3_powered.number}.gif
  252.   linkWrap = <a href="http://www.typo3.com/" target="_blank">|</a>
  253.   wrap = <br>|<br><br>
  254. }
  255.  
  256.   # parsefunc
  257. styles.content.parseFunc {
  258.   makelinks = 1
  259.   makelinks.http.keep = {$styles.content.links.keep}
  260.   makelinks.http.extTarget = {$styles.content.links.extTarget}
  261.   makelinks.http.wrap = {$styles.content.links.wrap}
  262.   makelinks.mailto.keep = path
  263.   makelinks.mailto.wrap = {$styles.content.links.wrap}
  264.   tags {
  265.     link = TEXT
  266.     link {
  267.       current = 1
  268.       typolink.parameter.data = parameters : allParams
  269.       typolink.extTarget = {$styles.content.links.extTarget}
  270.       typolink.target = {$styles.content.links.target}
  271.       typolink.wrap = {$styles.content.links.wrap}
  272.       parseFunc.constants =1
  273.     }
  274.   }
  275.   allowTags = {$styles.content.links.allowTags}
  276.   denyTags = *
  277.   sword = {$styles.content.links.sword}
  278.   constants = 1
  279. }
  280.  
  281.   # textstyle
  282. styles.content.textStyle {
  283.   align.field = text_align
  284.   face.field = text_face
  285.   size.field = text_size
  286.   color.field = text_color
  287.   properties.field = text_properties
  288.  
  289.   face.default = {$styles.content.textStyle.face}
  290.   face.default.override.data = register: textStyle_face
  291.  
  292.   size.default = {$styles.content.textStyle.size}
  293.   size.default.override.data = register: textStyle_size
  294.  
  295.   color.default = {$styles.content.textStyle.color}
  296.   color.default.override.data = register: textStyle_color
  297.  
  298.   properties.default = {$styles.content.textStyle.properties}
  299.   properties.default.override.data = register: textStyle_properties
  300.  
  301.   color.1 = {$styles.content.textStyle.color1}
  302.   color.2 = {$styles.content.textStyle.color2}
  303.  
  304.   altWrap = {$styles.content.textStyle.altWrap}
  305. }
  306.  
  307.   # tablestyle
  308. styles.content.tableStyle {
  309.   align.field = {$styles.content.tableStyle.alignField}
  310.   border.field = table_border
  311.   cellspacing.field = table_cellspacing
  312.   cellpadding = 1
  313.   cellpadding.override.field = table_cellpadding
  314.  
  315.   color.field = table_bgColor
  316.   color.default = {$styles.content.tableStyle.color}
  317.   color.1 = {$styles.content.tableStyle.color1}
  318.   color.2 = {$styles.content.tableStyle.color2}
  319. }
  320.  
  321.   # pageframes
  322. styles.content.frames = CASE
  323. styles.content.frames {
  324.   key.field = section_frame
  325.   1 = TEXT
  326.   1.value = <table border=0 cellspacing=0 cellpadding=0><tr><td> | </td></tr></table>
  327.  
  328.   5 = HRULER
  329.   5.lineThickness = {$styles.content.frames.ruler.lineThickness}
  330.   5.lineColor = {$styles.content.frames.ruler.lineColor}
  331.   5.stdWrap.spaceBefore = {$styles.content.frames.ruler.before}
  332.   5.stdWrap.spaceAfter = {$styles.content.frames.ruler.after}
  333.  
  334.   6 = COA
  335.   6.1 = TEXT
  336.   6.1.value = |
  337.   6.2 < .5
  338.  
  339.   10 = TEXT
  340.   10.value = <table border=0 cellspacing=0 cellpadding=0><tr><td><img src="clear.gif" width={$styles.content.frames.indent} height=1></td><td> | </td></tr></table>
  341.   11 = TEXT
  342.   11.value = <table border=0 cellspacing=0 cellpadding=0><tr>{$styles.content.frames.33_66cell}<td> | </td></tr></table>
  343.   12 = TEXT
  344.   12.value = <table border=0 cellspacing=0 cellpadding=0><tr><td> | </td>{$styles.content.frames.33_66cell}</tr></table>
  345.  
  346.   20 = TEXT
  347.   20.value = <table border=0 bgColor="{$styles.content.frames.1.bgCol}" cellspacing=0 cellpadding={$styles.content.frames.padding}><tr><td> | </td></tr></table>
  348.   21 = TEXT
  349.   21.value = <table border=0 bgColor="{$styles.content.frames.2.bgCol}" cellspacing=0 cellpadding={$styles.content.frames.padding}><tr><td> | </td></tr></table>
  350.   21.wrap = <table border=0 bgColor="{$styles.content.frames.2.borderCol}" cellspacing=0 cellpadding={$styles.content.frames.2.borderThickness}><tr><td> | </td></tr></table>
  351. }
  352.  
  353.   # image Frames
  354. styles.content.imgFrames.1 {
  355.   bgImg = GIFBUILDER
  356.   bgImg {
  357.     XY = 100,100
  358.     backColor = {$styles.content.imgFrames.bgCol}
  359.     backColor.override.data = register:pageColor
  360.   }
  361. {$styles.content.imgFrames.comment_bottom}  bottomImg = GIFBUILDER
  362.   bottomImg {
  363.     XY = 100,100
  364.     backColor = {$styles.content.imgFrames.bottomCol}
  365.   }
  366.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}1_bottom.jpg
  367.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}1_mask.jpg
  368. }
  369. styles.content.imgFrames.2 < styles.content.imgFrames.1
  370. styles.content.imgFrames.2 {
  371.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}2_bottom.jpg
  372.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}2_mask.jpg
  373. }
  374. styles.content.imgFrames.3 < styles.content.imgFrames.1
  375. styles.content.imgFrames.3 {
  376.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}3_bottom.jpg
  377.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}3_mask.jpg
  378. }
  379. styles.content.imgFrames.4 < styles.content.imgFrames.1
  380. styles.content.imgFrames.4 {
  381.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}4_bottom.jpg
  382.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}4_mask.jpg
  383. }
  384. styles.content.imgFrames.5 < styles.content.imgFrames.1
  385. styles.content.imgFrames.5 {
  386.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}5_bottom.jpg
  387.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}5_mask.jpg
  388. }
  389. styles.content.imgFrames.6 < styles.content.imgFrames.1
  390. styles.content.imgFrames.6 {
  391.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}6_bottom.jpg
  392.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}6_mask.jpg
  393. }
  394. styles.content.imgFrames.7 < styles.content.imgFrames.1
  395. styles.content.imgFrames.7 {
  396.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}7_bottom.jpg
  397.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}7_mask.jpg
  398. }
  399. styles.content.imgFrames.8 < styles.content.imgFrames.1
  400. styles.content.imgFrames.8 {
  401.   bottomImg_mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}8_bottom.jpg
  402.   mask = {$styles.content.imgFrames.path}{$styles.content.imgFrames.frameCollection}8_mask.jpg
  403. }
  404.  
  405.   # imgtext
  406. styles.content.imgtext = IMGTEXT
  407. styles.content.imgtext {
  408.   imgList.field = image
  409.   textPos.field = imageorient
  410.   imgPath = uploads/pics/
  411.   imgObjNum = 1
  412.   1 {
  413.    file.import.current = 1
  414.    file.width.field = imagewidth
  415.    params = align="top"
  416.    imageLinkWrap = 1
  417.    imageLinkWrap {
  418.     bodyTag = <body bgColor=black>
  419.     wrap = <a href="javascript:close();"> | </a>
  420.     width = {$styles.content.imgtext.linkWrap.width}
  421.     height = {$styles.content.imgtext.linkWrap.height}
  422.     effects = {$styles.content.imgtext.linkWrap.effects}
  423.     JSwindow = 1
  424.     JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
  425.     JSwindow.expand = 17,20
  426.     enable.field = image_zoom
  427.     enable.ifEmpty.field = image_link
  428.     typolink.parameter.field = image_link
  429. {$styles.content.imgtext.comment_CSL-LinkList}   typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM
  430.     typolink.target = {$styles.content.links.target}
  431.     typolink.extTarget = {$styles.content.links.extTarget}
  432.    }
  433.   }
  434.   maxW = {$styles.content.imgtext.maxW}
  435.   maxW.override.data = register:maxImageWidth
  436.   maxWInText = {$styles.content.imgtext.maxWInText}
  437.   equalH.field = imageheight
  438.   image_compression.field = image_compression
  439.   image_effects.field = image_effects
  440.   spaceBelowAbove = 6
  441.  
  442.   image_frames.key.field = image_frames
  443.   image_frames.1 < styles.content.imgFrames.1
  444.   image_frames.2 < styles.content.imgFrames.2
  445.   image_frames.3 < styles.content.imgFrames.3
  446.   image_frames.4 < styles.content.imgFrames.4
  447.   image_frames.5 < styles.content.imgFrames.5
  448.   image_frames.6 < styles.content.imgFrames.6
  449.   image_frames.7 < styles.content.imgFrames.7
  450.   image_frames.8 < styles.content.imgFrames.8
  451.  
  452.   noRows.field = image_noRows
  453.  
  454.   cols.field = imagecols
  455.   border.field = imageborder
  456.   caption {
  457.     1 = TEXT
  458.     1.if.isFalse = {$styles.content.imgtext.captionSplit}
  459.     1.field = imagecaption
  460.     1.parseFunc < styles.content.parseFunc
  461.     1.required = 1
  462.     1.fontTag = {$styles.content.imgtext.captionWrap}
  463.     1.wrapAlign.field = imagecaption_position
  464.     1.wrap = | <br>
  465.     1.spaceBefore = 5
  466.     1.br = 1
  467.   }
  468.   captionSplit = {$styles.content.imgtext.captionSplit}
  469.   captionSplit.cObject = TEXT
  470.   captionSplit.cObject.field = imagecaption
  471.   captionSplit.stdWrap < .caption.1
  472.   captionSplit.stdWrap {
  473.     field >
  474.     if >
  475.   }
  476.  
  477.   borderCol = {$styles.content.imgtext.borderColor}
  478.   borderThick = {$styles.content.imgtext.borderThick}
  479.   colSpace = {$styles.content.imgtext.colSpace}
  480.   rowSpace = {$styles.content.imgtext.rowSpace}
  481.   textMargin = {$styles.content.imgtext.textMargin}
  482.  
  483.   editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
  484.   editIcons.iconTitle=Edit images
  485.   caption.editIcons = tt_content : imagecaption[imagecaption_position]
  486.   caption.editIcons.beforeLastTag=1
  487.   caption.editIcons.iconTitle = Edit image caption
  488. }
  489.  
  490. # NOTE: Based on "current" to be set to the bulletlist content on beforehand!
  491. styles.content.bulletlist = TEXT
  492. styles.content.bulletlist {
  493.   current = 1
  494.   trim = 1
  495.   if.isTrue.current = 1
  496.   parseFunc < styles.content.parseFunc
  497.   split {
  498.     token.char = 10
  499.     cObjNum = 1
  500.     1.current = 1
  501.     1.wrap = <li>
  502.   }
  503.   fontTag = <ol type="1"> | </ol>
  504.   textStyle < styles.content.textStyle
  505.   textStyle.altWrap = {$styles.content.bulletlist.altWrap}
  506. }
  507.  
  508. # NOTE: Based on "current" to be set to the bulletlist content on beforehand!
  509. styles.content.bulletlist_gr < styles.content.bulletlist
  510. styles.content.bulletlist_gr {
  511.   split {
  512.     1.wrap = <tr><td valign="top"><img src="media/bullets/dot.gif" vspace="4" hspace="4"></td><td valign="top"> | </td></tr>
  513.     1.textStyle < styles.content.textStyle
  514.     1.textStyle.altWrap = {$styles.content.bulletlist.altWrap}
  515.   }
  516.   wrap = <table border="0" cellpadding="0" cellspacing="2"> | </table>
  517.   fontTag >
  518.   textStyle >
  519. }
  520.  
  521. # NOTE: Based on "current" to be set to the table content on beforehand!
  522. styles.content.table  = TEXT
  523. styles.content.table {
  524.   current = 1
  525.   if.isTrue.current = 1
  526.   trim = 1
  527.   parseFunc < styles.content.parseFunc
  528.   split {
  529.     token.char = 10
  530.     cObjNum = 1 || 2
  531.     1.current = 1
  532.     1.trim =1
  533.     1.required = 1
  534.     1.split {
  535.       token = |
  536.       max.field = cols
  537.       min.field = cols
  538.       cObjNum = 1 || 2
  539.       1.current = 1
  540.       1.fontTag = |&nbsp;
  541.       1.textStyle < styles.content.textStyle
  542.       1.textStyle.altWrap = {$styles.content.table.altWrap}
  543.       1.wrap = <td valign="top">|</td>
  544.       2 < .1
  545.     }
  546.     2 < .1
  547.     wrap = <tr>|</tr>
  548.   }
  549.   tableStyle < styles.content.tableStyle
  550. }
  551.  
  552.   # uploads
  553. styles.content.uploads = TEXT
  554. styles.content.uploads {
  555.   current = 1
  556.   override.filelist.field = select_key
  557.   trim = 1
  558.   required = 1
  559.   split {
  560.     token = ,
  561.     cObjNum = 1
  562.     1.current = 1
  563.     1.trim =1
  564.     1.filelink {
  565.       path = uploads/media/
  566.       path.override.field = select_key
  567.       path.override.listNum = 0
  568.       path.override.listNum.splitChar = |
  569.       size = 1
  570.       size.wrap = {$styles.content.uploads.tdWrap}
  571.       size.innerWrap = &nbsp;&nbsp;&nbsp;
  572.       size.innerWrap2 = {$styles.content.uploads.sizeWrap}
  573.       size.fontTag = {$styles.content.uploads.wrap}
  574.       size.bytes = 1
  575.       size.if.isTrue.field = filelink_size
  576.       labelStdWrap.fontTag = {$styles.content.uploads.labelWrap}
  577.       file.fontTag = {$styles.content.uploads.wrap}
  578.       file.wrap = {$styles.content.uploads.tdWrap}
  579.       file.postCObject = TEXT
  580.       file.postCObject {
  581.         field = imagecaption
  582.         required = 1
  583.         if.directReturn = {$styles.content.uploads.descriptionWrap}
  584.         wrap = <br>{$styles.content.uploads.descriptionWrap}
  585.         listNum.stdWrap.data = register : SPLIT_COUNT
  586.         listNum.splitChar = 10
  587.       }
  588.       stdWrap.wrap = <tr><td><img src="clear.gif" width=4 height=1></td> | </tr>
  589.       target = _blank
  590.       jumpurl = {$styles.content.uploads.jumpurl}
  591.       jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
  592.       jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
  593.       removePrependedNumbers = 1
  594.     }
  595.   }
  596.   tableStyle < styles.content.tableStyle
  597.  
  598. }
  599. styles.content.uploads_icons < styles.content.uploads
  600. styles.content.uploads_icons.split.1.filelink {
  601.   icon = 1
  602.   icon.wrap2 = <td align="center"> | </td>
  603.   icon_link = 1
  604. }
  605. styles.content.uploads_imgicons < styles.content.uploads_icons
  606. styles.content.uploads_imgicons.split.1.filelink {
  607.   icon_image_ext_list.data = global: TYPO3_CONF_VARS|GFX|imagefile_ext
  608.   icon.wrap = {$_blackBorderWrap}
  609. }
  610.   # columns
  611. styles.content.columns = COLUMNS
  612. styles.content.columns {
  613.   1 = CONTENT
  614.   1 {
  615.     table = tt_content
  616.     select.orderBy = sorting
  617.     select.where = colPos=1
  618.     select.languageField = sys_language_uid
  619.   }
  620.   2 < .1
  621.   2.select.where = colPos=2
  622.  
  623.   gapWidth = {$styles.content.columns.gapWidth}
  624.   gapLineThickness = {$styles.content.columns.gapLineThickness}
  625.   if.isTrue.numRows < .1
  626.   if.isTrue.ifEmpty.numRows < .2
  627.   totalWidth = {$styles.content.columns.totalWidth}
  628. }
  629.  
  630.   # mailform
  631. styles.content.mailform = FORM
  632. styles.content.mailform {
  633.   layout = <tr><td align=right>###LABEL###</td><td><img src="clear.gif" width={$styles.content.mailform.border}></td><td>###FIELD###</td></tr>
  634.   labelWrap.wrap = {$styles.content.mailform.labelWrap}
  635.   fieldWrap.wrap = {$styles.content.mailform.fieldWrap}
  636.   commentWrap.wrap = {$styles.content.mailform.commentWrap}
  637.   radioWrap.wrap = {$styles.content.mailform.radioWrap}
  638.   REQ = 1
  639.   REQ.labelWrap.wrap = {$styles.content.mailform.REQ.labelWrap}
  640.   COMMENT.layout = <tr><td colspan=3 align=center>###LABEL###</td></tr>
  641.   stdWrap.wrap = <table border=0 cellspacing=0 cellpadding=2> | </table>
  642.   target = {$styles.content.mailform.target}
  643.   goodMess = {$styles.content.mailform.goodMess}
  644.   badMess = {$styles.content.mailform.badMess}
  645.   redirect.field = pages
  646.   redirect.listNum = 0
  647.   recipient.field = subheader
  648.   data.field = bodytext
  649. # type.field = form_type
  650.   type >
  651.   locationData = 1
  652. }
  653.  
  654. {$styles.content.mailform.comment_type2} styles.content.mailform.layout = <tr><td><img src="clear.gif" width={$styles.content.mailform.border}></td><td>###LABEL###<br>###FIELD###</td></tr>
  655. {$styles.content.mailform.comment_type2} styles.content.mailform.COMMENT.layout = <tr><td></td><td>###LABEL###</td></tr>
  656.  
  657.   # loginform
  658. styles.content.loginform < styles.content.mailform
  659. styles.content.loginform {
  660.   goodMess = {$styles.content.loginform.goodMess}
  661.   redirect > 
  662.   recipient >
  663.   data >
  664.   dataArray {
  665.     10.label = Username:
  666.     10.type = *user=input
  667.     20.label = Password:
  668.     20.type = *pass=password
  669.     30.type = logintype=hidden
  670.     30.value = login
  671.     40.type = submit=submit
  672.     40.value = Login
  673.   }
  674.   type.field = pages
  675.   type.listNum = 0
  676.   target = {$styles.content.loginform.target}
  677.   locationData = 0
  678.   hiddenFields.pid = TEXT
  679.   hiddenFields.pid {
  680.     value = {$styles.content.loginform.pid}
  681.     override.field = pages
  682.     override.listNum = 1
  683.   }
  684. }
  685.  
  686. [loginUser = *]
  687. styles.content.loginform {
  688.   dataArray >
  689.   dataArray {
  690.     10.label = Username: <!--###USERNAME###-->
  691.     20 >
  692.     30.type = logintype=hidden
  693.     30.value = logout
  694.     40.type = submit=submit
  695.     40.value = Logout
  696.   }
  697. }
  698.  
  699.   # searchform
  700. styles.content.searchform < styles.content.mailform
  701. styles.content.searchform {
  702.   goodMess = {$styles.content.searchform.goodMess}
  703.   redirect > 
  704.   recipient >
  705.   data >
  706.   dataArray {
  707.     10.label = Searchword:
  708.     10.type = sword=input
  709.     20.label = Search in:
  710.     20.type = scols=select
  711.     20.valueArray {
  712.       10.label = Headers and keywords
  713.       10.value = pages.title-subtitle-keywords-description:tt_content.header
  714.       20.label = Pagecontent
  715.       20.value = tt_content.header-bodytext-imagecaption
  716.     }
  717.     30.type = stype=hidden
  718.     30.value = L0
  719.     40.type = submit=submit
  720.     40.value = Search now!
  721.   }
  722.   type.field = pages
  723.   type.listNum = 0
  724.   locationData = HTTP_POST_VARS
  725.   no_cache = 1
  726. }
  727.  
  728.   # searchresult
  729. styles.content.searchresult = SEARCHRESULT
  730. styles.content.searchresult {
  731.   allowedCols = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption : tt_address.name-title-address-email-company-city-country : tt_links.title-note-note2-url : tt_board.subject-message-author-email : tt_calender.title-note : tt_products.title-note-itemnumber
  732.   renderObj = COA
  733.   renderObj {
  734.     10 = TEXT
  735.     10.field = pages_title
  736.     10.textStyle {
  737.       face.default = {$styles.content.searchresult.head.face}
  738.       size.default = {$styles.content.searchresult.head.size}
  739.       color.default = {$styles.content.searchresult.head.color}
  740.     }
  741.     10.fontTag = <b> | </b>
  742.     10.typolink.parameter.field = uid
  743.     10.typolink.target = {$styles.content.searchresult.resultTarget}
  744.     10.typolink.additionalParams.data = register:SWORD_PARAMS
  745.     10.typolink.additionalParams.required = 1
  746.     10.typolink.additionalParams.wrap = &no_cache=1
  747.     10.wrap = <tr><td>|</td></tr>
  748.     10.spaceBefore = 6
  749.     20 = COA
  750.     20 {
  751.       10 = TEXT
  752.       10.field = tt_content_bodytext
  753.       10.htmlSpecialChars = 1
  754.       10.stripHtml = 1
  755.     }
  756.     20.stdWrap.crop = 200 | ...
  757.     20.stdWrap.wrap = <tr><td>|</td></tr>
  758.     20.stdWrap.textStyle {
  759.       face.default = {$styles.content.searchresult.face}
  760.       size.default = {$styles.content.searchresult.size}
  761.       color.default = {$styles.content.searchresult.color}
  762.     }
  763.   }
  764.   renderWrap = <table border=0 cellspacing=3> | </table>
  765.   layout = COA
  766.   layout {
  767.     wrap = <table border=0 cellspacing=0 cellpadding=2><tr> | </tr></table> ###RESULT###
  768.     10 = TEXT
  769.     10.value = Searchresult: ###RANGELOW###-###RANGEHIGH### of ###TOTAL###
  770.     10.fontTag = {$styles.content.searchresult.header.wrap}
  771.     10.wrap = <td width=95% bgColor="{$styles.content.searchresult.header.bgCol}"> | </td>
  772.     20 = TEXT
  773.     20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
  774.     20.fontTag = {$styles.content.searchresult.header.wrap}
  775.     20.wrap = <td bgColor="{$styles.content.searchresult.header.bgCol}">|</td>
  776.   }
  777.   noResultObj = COA
  778.   noResultObj {
  779.     wrap = <table border=0 cellspacing=0 cellpadding=2><tr> | </tr></table>
  780.   10 = TEXT
  781.     10.value = Sorry, you search was empty!
  782.     10.fontTag = {$styles.content.searchresult.header.wrap}
  783.     10.wrap = <td width=95% bgColor="{$styles.content.searchresult.header.bgCol}"> | </td>
  784.   }
  785.   next = TEXT
  786.   next.value = Next
  787.   prev = TEXT
  788.   prev.value = Prev
  789.   target = {$styles.content.searchresult.target}
  790.   range = 20
  791. }
  792. styles.content.editPanelPage = COA
  793. styles.content.editPanelPage {
  794.   10 = EDITPANEL
  795.   10 {
  796. # move,new,edit,hide
  797.     allow = toolbar,move,hide
  798.     label = Page: <b>%s</b>
  799.   }
  800. /*
  801.   20 = EDITPANEL
  802.   20 {
  803.     newRecordFromTable = tt_content
  804.     line = 5
  805.     label = New content...
  806.   }
  807. */
  808. }
  809. styles.content.RTE_encaps_stylesheets {
  810.   encapsTagList = div,p,pre
  811.   remapTag.DIV = P
  812.   nonWrappedTag = P
  813.   innerStdWrap_all.ifEmpty = &nbsp;
  814.   defaultAlign.field = text_align
  815. }
  816.  
  817. styles.content.RTE_encaps_fontwrap < styles.content.RTE_encaps_stylesheets
  818. styles.content.RTE_encaps_fontwrap {
  819.     # Forcing these attributes onto the encapsulation-tags if any
  820.   addAttributes.P.style=margin:0 0 0 0;
  821.   addAttributes.PRE.style=margin:0 0 0 0; color:navy;
  822.   encapsLinesStdWrap.P.textStyle < styles.content.textStyle
  823.   encapsLinesStdWrap.P.textStyle.align>
  824. }
  825. Editor Config
  826.  -
Download this file: styles.content (default)
Related topics:
link
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