Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Xris:Tutorial/SampleTypoScriptPageConfig

From TYPO3Wiki
Jump to: navigation, search

notice - This information is outdated

While some details may still apply in specific situations, this page was written for packages of TYPO3 that are no longer current.


Use the "Page" module and go to the root page (containing your root-template"), then edit the page header and insert the following code in the "TSconfig" section:

TS TypoScript:
 #
 # First, unload all default RTE configuration
 #
 RTE >

 #
 # Setup the RTE
 #
 RTE.default {
 
   #
   # as far as i know, this setting works only for the default RTE extension
   #
   showButtons = cut,copy,paste,formatblock,class,bold,italic,underline,left,center,right,orderedlist,unorderedlist,outdent,indent,link,table,image
 
   #
   # very important: set up the links, so they open in the same window on default:
   #
   defaultLinkTarget = _top
 
   #
   # this keeps the RTE from messing up BR/P's
   #
   dontConvBRtoParagraph = 1
   proc.dontConvBRtoParagraph = 1
 
   #
   # frankly, i don't know what these do; keep them anyway ..
   #
   proc.overruleMode = ts_css
   proc.preserveTables = 1
 
   #
   # this entry is important; here you can specify, which tags will be stripped by the
   # RTE on writing and/or reading from the typo3 content tables:
   #
   proc.entryHTMLparser_db = 1
   proc.entryHTMLparser_db {
     htmlSpecialChars = -1
     allowTags = font,em,blockquote,table,tr,p,td,div,img,hr,a,br,pre,b,strong,i,em,u,li,ul,ol,span,h1,h2,h3,h4,h5,h6,dl,dt,dd
     allowTagsOutside = font,em,blockquote,table,tr,p,td,div,img,hr,a,br,pre,b,strong,i.em,u,li,ul,ol,span,h1,h2,h3,h4,h5,h6,dl,dt,dd
     allowTagsInTypolists = font,em,blockquote,table,tr,p,td,div,img,hr,a,br,pre,b,strong,i,em,u,li,ul,ol,span,h1,h2,h3,h4,h5,h6,dl,dt,dd
   }
 
 } 

 #
 # Setup the available columns- 0=Normal, 1=Left, 2=Right, 3=Border; Example: colPos_list=0,1
 #
 mod.SHARED.colPos_list=0