Skip to content

Instantly share code, notes, and snippets.

@alienlebarge
Created February 16, 2011 14:55
Show Gist options
  • Save alienlebarge/829497 to your computer and use it in GitHub Desktop.
Save alienlebarge/829497 to your computer and use it in GitHub Desktop.
Typo3 TSconfig page
################################################################################
## [xx. Default display = French]
mod.SHARED {
defaultLanguageLabel = French
defaultLanguageFlag = fr.gif
}
################################################################################
## [xx. config création/copie de page]
# lors de la copie d'une page le (copie 1) n'est pas ajouté au titre
TCEMAIN.table.pages.disablePrependAtCopy = 0
#lores de sa création, une page est cachée
TCAdefaults.pages.hidden = 1
################################################################################
## [xx. Alert en cas d'élément plurilangue]
#mod.web_txtemplavoilaM1.disableContainerElementLocalizationWarning_warningOnly = 1
################################################################################
## [xx. Configuration du RTE]
## Définition des classes en fonction des types de liens
RTE.classesAnchor >
## RTE Konfiguration
RTE.default {
# CSS a appliqué dans l'éditeur
contentCSS = fileadmin/templates/Ely10/library/css/styles.css
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield
removeTagsAndContents = style,script
# Bouttons
# pas besoin d'utiliser hideButtons si la config du RTE est sur "minimal"
# showButtons = * BUG with IE6 and Typo3 4.3 the tt_content can't load in Backend and IE6 freeze 2010.06.02 JLT
showButtons (
#blockstylelabel,
#blockstyle,
#textstylelabel,
#textstyle,
#fontstyle,
#fontsize,
formatblock,
#blockquote,
#insertparagraphbefore,
#insertparagraphafter,
#lefttoright,
#righttoleft,
#language,
#showlanguagemarks,
#left,
#center,
#right,
#justifyfull,
orderedlist,
unorderedlist,
#definitionlist,
#definitionitem,
#outdent,
##indent,
#formattext,
#bidioverride,
#big,
bold,
#citation,
#code,
#definition,
#deletedtext,
#emphasis,
#insertedtext,
italic,
#keyboard,
#monospaced,
#quotation,
#sample,
#small,
#span,
#strikethrough,
#strong,
#subscript,
#superscript,
#underline,
#variable,
#textcolor,
#bgcolor,
#textindicator,
#emoticon,
#insertcharacter,
#line,
link,
unlink,
#image,
#table,
#user,
#acronym,
#findreplace,
#spellcheck,
#chMode,
#inserttag,
removeformat,
#copy,
#cut,
#paste,
#undo,
#redo,
#showhelp,
#about,
#toggleborders,
#tableproperties,
#tablerestyle,
#rowproperties,
#rowinsertabove,
#rowinsertunder,
#rowdelete,
#rowsplit,
#columnproperties,
#columninsertbefore,
#columninsertafter,
#columndelete,
#columnsplit,
#cellproperties,
#cellinsertbefore,
#cellinsertafter,
#celldelete,
#cellsplit,
#cellmerge
)
# Les boutons restenet groupés ensemble
keepButtonGroupTogether = 1
# Affichage de la barre de statut
showStatusBar = 1
## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 3
// Disable Default paragraph styles
hidePStyleItems = h1, h2, h4, h5, h6, pre, address, blockquote, div
#transformation
proc {
## DO NOT CONVERT BR TAGS INTO LINEBREAKS
## br tags in the content are assumed to be intentional.
dontConvBRtoParagraph = 1
## REMAP DIV TAGS TO P TAGS
## For compatibility between Classic RTE and htmlArea RTE
remapParagraphTag = p
## TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = hr, address, ul, ol, li
## TAGS ALLOWED
# balise autorisée
# b and i will be remapped on exit (see below).
allowTags (
a,
#abbr,
#acronym,
#address,
b,
#bdo,
#big,
#blockquote,
br,
#caption,
#center,
#cite,
#code,
#col,
#colgroup,
#del,
#dfn,
div,
em,
#font,
#h1,
#h2,
h3,
#h4,
#h5,
#h6,
#hr,
i,
#img,
#ins,
#kbd,
#label,
li,
link,
#meta,
ol,
p,
#pre,
#q,
#samp,
#sdfield,
#small,
span,
#strike,
strong,
#style,
#sub,
#sup,
#table,
#thead,
#tbody,
#tfoot,
#td,
#th,
#tr,
#title,
#tt,
#u,
ul,
#var
)
## TAGS DENIED
denyTags >
# Attribus autorisées
keepPDIVattribs = class,style,id
# List all class selectors that are allowed on the way to the database
allowedClasses (
external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail, small, imageCaption, align-left, align-center, align-right, link
)
# html parser einstellungen
HTMLparser_rte {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# tags die untersagt sind
removeTags = font
# entfernt html-kommentare
removeComments = 1
# tags die nicht �bereinstimmen werden nicht entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}
# Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
## AVOID CONTENT BEING HSC'ed TWICE
htmlSpecialChars = 0
# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
rmTagIfNoAttrib = span,div,font
# htmlSpecialChars = 1
## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style,align
div.fixAttrib.align.unset >
hr.allowedAttribs = class
# b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
## img tags werden erlaubt
img >
}
}
HTMLparser_db {
## STRIP ALL ATTRIBUTES FROM THESE TAGS
## If this list of tags is not set, it will default to: b,i,u,br,center,hr,sub,sup,strong,em,li,ul,ol,blockquote,strike.
## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
noAttrib = br
## XHTML COMPLIANCE
## Note that applying xhtml_cleaning on exit would break non-standard attributes of typolink tags
xhtml_cleaning = 1
}
}
# Classes: Ausrichtung
classesParagraph (
align-left, align-center, align-right, small, imageCaption, link
)
# Classes: Eigene Stile
classesCharacter = small, imageCaption
classesImage= expoImage
# Classes f�r Links (These classes should also be in the list of allowedClasses)
classesAnchor = external-link, external-link-new-window, internal-link, link internal-link-new-window, download, mail
classesAnchor.default {
page = internal-link
url = external-link-new-window
file = download
mail = mail
}
# zeigt alle CSS-Klassen die in formate.css vorhanden sind
showTagFreeClasses = 1
# Do not allow insertion of the following tags
hideTags = font
# Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 0
keepToggleBordersInToolbar = 1
}
# Use same processing as on entry to database to clean content pasted into the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
# FE RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
RTE.default.proc.overruleMode = none
################################################################################
## [xx. Config pour le DAM]
// Add txdam_media to RTE processing rules
RTE.default.proc.overruleMode = ts_css,txdam_media
// Use same RTE processing rules in FE
RTE.default.FE.proc.overruleMode = ts_css,txdam_media
// RTE processing rules for bodytext column of tt_content table
RTE.config.tt_content.bodytext.proc.overruleMode = ts_css,txdam_media
RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css,txdam_media
RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css,txdam_media
## RTE processing rules for bodytext column of tt_news table
RTE.config.tt_news.bodytext.proc.overruleMode = ts_css,txdam_media
RTE.config.tt_news.bodytext.types.text.proc.overruleMode = ts_css,txdam_media
RTE.config.tt_news.bodytext.types.textpic.proc.overruleMode = ts_css,txdam_media
################################################################################
## [xx. Zone d'édition en plein écran]
## Zone de texte d'un contenu de type texte
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%
## Zone de texte d'une nouvelle « tt_news »
TCEFORM.tt_news.bodytext.RTEfullScreenWidth = 100%
################################################################################
## [xx. Backend Layout]
mod {
web_list {
# en mode liste le background est altérné
alternateBgColors = 1
}
}
################################################################################
## [xx. Page permissions]
# Droits par défaut lors de la création d'une page
# (Bits in keylist: show=1,edit=2,delete=4,new=8,editcontent=16)
TCEMAIN.permissions {
user = 31
group = 31
everybody = 31
}
################################################################################
## [xx. Config du TCEFORM]
#Désactivation de l'upload d'image classique
TCEFORM.tt_content.image.disabled = 1
#####################################################################
# [xx. linkhandler]
<INCLUDE_TYPOSCRIPT:source="FILE:fileadmin/templates/Ely10/extensions/linkhandler/typoscript/page_ts_config.ts">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment