[Typo3-UG Italy] R: R: R: codice html pulito
Luca Feti
luca.feti at coni.it
Mon Dec 5 17:12:32 CET 2005
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/_temp_/sito/index.htm
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
SPAN.all = 1
DIV.all = 1
LI.all = 1
P.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/_temp_/sito/
}
# menu_1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.special = list
temp.menu_1.special.value = 32
temp.menu_1.1.noBlur = 1
temp.menu_1.1 {
NO.linkWrap = |
NO.tabIndex = 1
NO.accessKey = 1
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <li id="menu_1"> | </li>
ACT.doNotLinkIt = 1
NO.ATagTitle.cObject = TEXT
NO.ATagTitle.cObject.value = AccessKey:
NO.ATagTitle.cObject.dataWrap = {field:title}-|
}
# menu_2 cObject
temp.menu_2 = HMENU
# First level menu-object, textual
temp.menu_2.1 = TMENU
temp.menu_2.special = list
temp.menu_2.special.value = 31
temp.menu_2.1.noBlur = 1
temp.menu_2.1 {
NO.linkWrap = |
NO.tabIndex = 1
NO.accessKey = 1
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <li id="menu_2"> | </li>
ACT.doNotLinkIt = 1
NO.ATagTitle.cObject = TEXT
NO.ATagTitle.cObject.value = AccessKey:
NO.ATagTitle.cObject.dataWrap = {field:title}-|
}
# menu_3 cObject
temp.menu_3 = HMENU
# First level menu-object, textual
temp.menu_3.1 = TMENU
temp.menu_3.special = list
temp.menu_3.special.value = 30
temp.menu_3.1.noBlur = 1
temp.menu_3.1 {
NO.linkWrap = |
NO.tabIndex = 1
NO.accessKey = 1
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <li id="menu_3"> | </li>
ACT.doNotLinkIt = 1
NO.ATagTitle.cObject = TEXT
NO.ATagTitle.cObject.value = AccessKey:
NO.ATagTitle.cObject.dataWrap = {field:title}-|
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
subparts {
colBorder_home < styles.content.getBorder
colLeft_home < styles.content.getLeft
colLeft_h < styles.content.getLeft
colRight_home_focus < styles.content.getRight
colNormal_h < styles.content.get
colNormal_home < styles.content.get
}
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###menu_2### subpart with dynamic menu:
subparts.menu_2 < temp.menu_2
# Substitute the ###menu_3### subpart with dynamic menu:
subparts.menu_3 < temp.menu_3
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.index_enable = 1
page.config.admPanel = 1
page.config.index_externals = 1
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
page.1015 < plugin.tx_dephpot_pi1
bf_xml_for_flash.config.disableAllHeaderCode = 0
bf_xml_for_flash.config.disableAllHeaderCode = 1
-----Messaggio originale-----
Da: typo3-ug-italy-bounces at lists.netfielders.de
[mailto:typo3-ug-italy-bounces at lists.netfielders.de] Per conto di stefano
cecere
Inviato: lunedì 5 dicembre 2005 17.06
A: TYPO3 Usergroup Italy
Oggetto: Re: [Typo3-UG Italy] R: R: codice html pulito
On 05/dic/05, at 16:55, Luca Feti wrote:
> Stefano ho provato ad inserirlo ma non va....
allora posta qui tutto il tuo template e vediamo.
ci sono almeno 5 modi totalmente diversi di implementare un template
in typo3... e magari qualcosa ci sfugge
_______________________________________________
Typo3-ug-italy mailing list
Typo3-ug-italy at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy
More information about the TYPO3-UG-italy
mailing list