[TYPO3] Eliminating extra div around headers

JoH info at cybercraft.de
Sun Mar 19 20:43:18 CET 2006


> With the utmost respect for you, as I'm well aware that you one of the
> most knowledgable list members and posts of yours have helped me
> immesnly in the past - IMHO your wrong on this.  I'm sorry but I
> disagree that he is right, let alone absolutley right - especially in
> this instance.

Maybe - maybe not ;-) - but thanx for the credits.

> Some how I think that one line of typoscript (
> lib.stdheader.10.stdWrap.wrap = | ) is a far better solution to this
> problem than copying out the whole 1115 lines of setup.txt, or even
> just the  70 lines that deal with lib.stdHeader,  from
> CSS-styled-content and then redefining it.
>
> And adding all those line of setup in a place when its not needed to
> accomplish the desired output - I think that possibly would only add
> to the confussion of whats going on, and make managing that template
> a hard job.

Well - this is the part where you are right if it's just one line of
TypoScript to be changed.
But let me give you an example, why this is bad style that will lead to a
lot of problems later on:

If you do it the TSOB or Constant Editor way, you will always change just
one line by simply adding this line to the end of your template and setting
a different value in the end of this line.
After lets say about 70 changes of different things in different places,
where some of them are changes to the same section but the admin didn't
apply those changes at the same time, the TS template will look like the
following example.
I took it from a live site we are currently relaunching, so this is a real
world example.
I promise to never send stuff like that to this list again, but it's
necessary to show the problem.

It's absolutely impossible to understand what's really going on in this
Template, and most of the stuff is just overhead, since the TSOB doesn't set
any curly brackets to give any structure to the changes.

This is why I would always copy the whole section and make the changes
directly in the code.

Joey

And now - the code:

tt_products = fileadmin/ls-n/Shoptemplate.tmpl
plugin.tt_products.currencySymbol = EUR
plugin.tt_products.templateFile = fileadmin/ls-n/Shoptemplate
plugin.tt_products.shipping.10.title = Email-Ticket
plugin.tt_products.shipping.10.image.file =
plugin.tt_products.payment.10.title = Überweisung/Money Transfer
plugin.tt_products.payment.10.image.file =
plugin.tt_products.orderEmail_fromName = Ls-N-Ticketshop
plugin.tt_products.shipping.20.title = Briefzustellung/Postal Service
plugin.tt_products.shipping.40.excludePayment =
plugin.tt_products.payment.40.title = Bar am Veranstaltungstag/Cash on
Eventdate
plugin.tt_products.payment.40.priceTax = 5
plugin.tt_products.payment.40.priceNoTax = 4,31
plugin.tt_products.payment.40.percentOfGoodstotal >
plugin.tt_products.payment.50 >
plugin.tt_products.templateFile = fileadmin/ls-n/Shoptemplate
plugin.tt_products.templateFile = pi/products_template.tmpl
plugin.tt_products.shipping.20.priceTax = 1,5
plugin.tt_products.shipping.20.priceNoTax = 1,3
plugin.tt_products.shipping.10.priceTax = 0
plugin.tt_products.shipping.10.priceNoTax = 0
plugin.tt_products.shipping.40.title = Selbstabholer/Pick up in store
plugin.tt_products.templateFile = plugin.tt_products.file.templateFile
tt_products = < plugin.tt_products
plugin.tt_products.payment.10.calculationScript =
plugin.tt_products.payment.10.title = Überweisung/Money Transfer (0 EUR)
plugin.tt_products.payment.40.title = Bar am Veranstaltungstag/Cash on
Eventdate (+ 5 EUR)
plugin.tt_products.lockLoginUserInfo = 1
plugin.tt_products.requiredInfoFields = name, address, telephone
plugin.tx_chguestslist_pi1._CSS_DEFAULT_STYLE = ### standard styles
###.tx-chguestlist-pi1 a { text-decoration:none} .tx-chguestlist-pi1 table
{     border: 1px solid #aaa;     width: 100%; } .tx-chguestlist-pi1 th {
plugin.tx_chguestslist_pi1._CSS_DEFAULT_STYLE = ### standard styles
###.tx-chguestlist-pi1 a { text-decoration:none} .tx-chguestlist-pi1 table
{     border: 1px solid #aaa;     width: 100%; } .tx-chguestlist-pi1 th
{     background: #ccc    color: black;     font-weight: normal;
padding: 3px 3px;     font-size: 10pt;} .tx-chguestlist-pi1 td {     color:
red;    padding: 3px 5px;     border-bottom: 1px solid #ccc;     font-size:
10pt;}.tx-chguestlist-pi1 .link {     padding: 12px 5px;     font-size:
11pt;}.tx-chguestlist-pi1 .message {    padding: 6px 5px;     font-size:
10pt;}/* table listview and singleview */.tx-chguestlist-pi1 table.list td
{ border-style: none; background-color: #eee;}.tx-chguestlist-pi1 table.list
.tabfoot { padding: 3px 5px; background-color: #666;}.tx-chguestlist-pi1
table.single td { border-style: none; padding: 6px 3px;}.tx-chguestlist-pi1
table.single .border td { border-bottom: 1px solid #ccc;}/* links
*/.tx-chguestlist-pi1 table.list a:link,.tx-chguestlist-pi1 table.list
a:visited { color: #333; }.tx-chguestlist-pi1 table.list
a:hover,.tx-chguestlist-pi1 table.list a:active { color:
#ccc;}.tx-chguestlist-pi1 table.list th a:link, .tx-chguestlist-pi1
table.list th a:visited { color: white;}.tx-chguestlist-pi1 table.list th
a:hover,.tx-chguestlist-pi1 table.list th a:active { color:
#3ff;}.tx-chguestlist-pi1 table.list .tabfoot a:link,.tx-chguestlist-pi1
table.list .tabfoot a:visited  { color: white;}.tx-chguestlist-pi1
table.list .tabfoot a:hover,.tx-chguestlist-pi1 table.list .tabfoot a:active
{ color: #6ff;}.tx-chguestlist-pi1 a:link,.tx-chguestlist-pi1 a:visited  {
color: red;}.tx-chguestlist-pi1 a:hover,.tx-chguestlist-pi1 a:active {
color: #06c;}
plugin.tx_chguestslist_pi1._CSS_DEFAULT_STYLE = ### standard styles
###.tx-chguestlist-pi1 a { text-decoration:verdana} .tx-chguestlist-pi1
table {     border: 1px solid #aaa;     width: 100%; } .tx-chguestlist-pi1
th {
plugin.tx_chguestslist_pi1._CSS_DEFAULT_STYLE = ### standard styles
###.tx-chguestlist-pi1 a { text-decoration:verdana} .tx-chguestlist-pi1
table {     border: 1px solid #aaa;     width: 100%; } .tx-chguestlist-pi1
th {
plugin.tx_chguestslist_pi1._CSS_DEFAULT_STYLE = ### standard styles
###.tx-chguestlist-pi1 a { text-decoration:none} .tx-chguestlist-pi1 table
{     border: 1px solid #aaa;     width: 100%; } .tx-chguestlist-pi1 th
{     background: #ccc    color: black;     font-weight: normal;
padding: 3px 3px;     font-size: 10pt;} .tx-chguestlist-pi1 td {     color:
red;    padding: 3px 5px;     border-bottom: 1px solid #ccc;     font-size:
10pt;}.tx-chguestlist-pi1 .link {     padding: 12px 5px;     font-size:
11pt;}.tx-chguestlist-pi1 .message {    padding: 6px 5px;     font-size:
10pt;}/* table listview and singleview */.tx-chguestlist-pi1 table.list td
{ border-style: none; background-color: #eee;}.tx-chguestlist-pi1 table.list
.tabfoot { padding: 3px 5px; background-color: #666;}.tx-chguestlist-pi1
table.single td { border-style: none; padding: 6px 3px;}.tx-chguestlist-pi1
table.single .border td { border-bottom: 1px solid #ccc;}/* links
*/.tx-chguestlist-pi1 table.list a:link,.tx-chguestlist-pi1 table.list
a:visited { color: #333; }.tx-chguestlist-pi1 table.list
a:hover,.tx-chguestlist-pi1 table.list a:active { color:
#ccc;}.tx-chguestlist-pi1 table.list th a:link, .tx-chguestlist-pi1
table.list th a:visited { color: white;}.tx-chguestlist-pi1 table.list th
a:hover,.tx-chguestlist-pi1 table.list th a:active { color:
#3ff;}.tx-chguestlist-pi1 table.list .tabfoot a:link,.tx-chguestlist-pi1
table.list .tabfoot a:visited  { color: white;}.tx-chguestlist-pi1
table.list .tabfoot a:hover,.tx-chguestlist-pi1 table.list .tabfoot a:active
{ color: #6ff;}.tx-chguestlist-pi1 a:link,.tx-chguestlist-pi1 a:visited  {
color: red;}.tx-chguestlist-pi1 a:hover,.tx-chguestlist-pi1 a:active {
color: #06c;}
plugin.tx_chguestlist_pi1.feUserPid = 1376
tt_content.login.20.layout = <tr><td align="center">###LABEL###</td><td><img
src="clear.gif" width="{$styles.content.mailform.border}" alt=""
/></td><td>###FIELD###</td></tr>
tt_content.login.20.layout = <tr><td align="center">###LABEL###</td><td><img
src="clear.gif" width="{$styles.content.mailform.border}" alt=""
/></td><td>###FIELD###</td></tr>
plugin.tt_products.templateFile = fileadmin/ls-n/shoptemplate.tmpl
plugin.tt_products.payment.40.title = Bar am Veranstaltungstag/Cash on
Eventdate
plugin.tt_products.templateFile = fileadmin/ls-n/Shoptemplate.tmpl
plugin.tt_products.lockLoginUserInfo = 0
plugin.tt_products.lockLoginUserInfo =
plugin.tt_products.requiredInfoFields = name, address, telephone, email
tt_content.login.20.layout = <tr><td align="center">###LABEL###</td><td><img
src="clear.gif" width="{$styles.content.mailform.border}" alt=""
/></td><td>###FIELD###</td></tr>
tt_content.login.20.layout = <tr><td align="left">###LABEL###</td><td><img
src="clear.gif" width="{$styles.content.mailform.border}" alt=""
/></td><td>###FIELD###</td></tr>
page.bodyTag = <body bgcolor="{$bgCol}" link="{$link}" vlink="{$vlink}"
alink="{$alink}"
style="font-family:Verdana,Arial,Helvetica,Modern,Geneva;color:#fff;font-siz
e:12px;">
plugin.tx_julleevents_pi1.excludeList =
billing_address,partner_code,phone,address,postcode,ort,country
plugin.tx_julleevents_pi1.excludeList =
billing_address,partner_code,phone,address,zip_code,ort,country
plugin.tx_julleevents_pi1.excludeList =
billing_address,partner_code,phone,address,zip,city,country
plugin.tx_julleevents_pi1.sender-name = lifestyle-Guestlist
plugin.tx_julleevents_pi1.pastOrFuture = 1
_CSS_DEFAULT_STYLE = .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-title { font-weight:bold; font-size:10;}
.tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser { margin-bottom:12px; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-title { font-weight:bold; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-teaser { margin-top:0px;
margin-bottom:10px; } .tx-jullevents-pi1 .tx-jullevents-pi1-singleView
P.tx-jullevents-pi1-singleViewField-teaser { font-style:verdana;
margin-top:5px; margin-bottom:10px; } .tx-jullevents-pi1
.tx-jullevents-pi1-browsebox P SPAN.tx-jullevents-pi1-browsebox-strong {
font-weight:bold; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A { color:white;
text-decoration:none; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A:hover { color:white;
text-decoration:none; }
_CSS_DEFAULT_STYLE = .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-title { font-weight:bold;}
.tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser { margin-bottom:12px; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-title { font-weight:bold; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-teaser { margin-top:0px;
margin-bottom:10px; } .tx-jullevents-pi1 .tx-jullevents-pi1-singleView
P.tx-jullevents-pi1-singleViewField-teaser { font-style:verdana;
margin-top:5px; margin-bottom:10px; } .tx-jullevents-pi1
.tx-jullevents-pi1-browsebox P SPAN.tx-jullevents-pi1-browsebox-strong {
font-weight:bold; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A { color:white;
text-decoration:none; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A:hover { color:white;
text-decoration:none; }
_CSS_DEFAULT_STYLE = .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-title { font-weight:bold; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser { margin-bottom:10px; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-title { font-weight:bold; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-teaser { margin-top:0px;
margin-bottom:10px; } .tx-jullevents-pi1 .tx-jullevents-pi1-singleView
P.tx-jullevents-pi1-singleViewField-teaser { font-style:verdana;
margin-top:5px; margin-bottom:10px; } .tx-jullevents-pi1
.tx-jullevents-pi1-browsebox P SPAN.tx-jullevents-pi1-browsebox-strong {
font-weight:bold; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A { color:white;
text-decoration:none; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A:hover { color:white;
text-decoration:none; }
_CSS_DEFAULT_STYLE = .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-title { font-weight:bold; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser { margin-bottom:12px; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-title { font-weight:bold; }
.tx-jullevents-pi1 .tx-jullevents-pi1-listrowFrontPage
P.tx-jullevents-pi1-listrowFrontPageField-teaser { margin-top:0px;
margin-bottom:10px; } .tx-jullevents-pi1 .tx-jullevents-pi1-singleView
P.tx-jullevents-pi1-singleViewField-teaser { font-style:verdana;
margin-top:5px; margin-bottom:10px; } .tx-jullevents-pi1
.tx-jullevents-pi1-browsebox P SPAN.tx-jullevents-pi1-browsebox-strong {
font-weight:bold; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A { color:white;
text-decoration:none; } .tx-jullevents-pi1 .tx-jullevents-pi1-listrow
P.tx-jullevents-pi1-listrowField-teaser A:hover { color:white;
text-decoration:none; }
page.bodyTag = <body bgcolor="{$bgCol}" link="{$link}" vlink="{$vlink}"
alink="{$alink}"
style="font-family:Verdana,Arial,Helvetica,Modern,Geneva;color:#fff;font-siz
e:10px;">
page.bodyTag = <body bgcolor="{$bgCol}" link="{$link}" vlink="{$vlink}"
alink="{$alink}"
style="font-family:Verdana,Arial,Helvetica,Modern,Geneva;color:#fff;size:10p
x;">
page.bodyTag = <body bgcolor="{$bgCol}" link="{$link}" vlink="{$vlink}"
alink="{$alink}"
style="font-family:Verdana,Arial,Helvetica,Modern,Geneva;color:#fff;size:10;
">
page.bodyTag = <body bgcolor="{$bgCol}" link="{$link}" vlink="{$vlink}"
alink="{$alink}"
style="font-family:Verdana,Arial,Helvetica,Modern,Geneva;color:#fff;size:10"
>
plugin.tx_julleevents_pi1.excludeList =
billing_address,phone,address,zip,city,country
plugin.tx_newloginbox_pi3.pidList = 1376
plugin.tx_newloginbox_pi1.detailsPage = 1376
plugin.tx_julleevents_pi1.excludeList = billing_addres,partner_code
plugin.tx_julleevents_pi1.excludeList = billing_addres, partner_code
plugin.tx_julleevents_pi1.excludeList = billing_addres,partner_code
plugin.tx_julleevents_pi1.excludeList = billing_address,partner_code
plugin.tx_julleevents_pi1.excludeList = billing_address,partner_code,phone
plugin.tx_newloginbox_pi1.detailsPage =


-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list