hallo alle zusammen.
inspiriert von diesem post: #8010
möchte ich mich ebenfalls in die community einbringen und mich auf diese weise erkenntlich zeigen für das ganze wissen, von welchem ich die letzten monate profitieren durfte.
die nachfolgenden code- und textpassagen sind die grundlage meines ersten typo3-projektes http://www.molfi.de.
mein anliegen war es, den code xhtml 1.0 strict konform valide zu halten. dies kann zwar auch durch tabellen geschehen, aber wo es möglich war, habe ich versucht auf css zu setzen. so dient auch css_styled_content als grundlage.
wie gesagt: ich bin blutiger typo3-anfänger. von daher kann man meine kenntnisse höchstens als mittelmäßig einstufen. für tipps und konstruktive kritik bin ich immer offen. ob ich alles (in nächster zeit) umsetzen kann, weiß ich allerdings nicht.
so, nu aber genug der vielen worte. ab gehts ...
hosting-daten:
shared-host
350 mb webspace
6 gb traffic
php, mysql, perl, ssi, image magick vorinstalliert
typo3 version: 3.81
genutzte extensions: (name und reihenfolge wie im extension-manager, nutzen, versionsangabe)
- qcom_htmlcleaner (generiert validen output-code) 2.4.0
- sf_validator (zeigt validierungsergebnis im backend) 0.2.0
- ss_dragdrop (drag n drop im pagetree) 0.9.0
- stfl_saveandnew (funktion zum speichern und neuerfassen eines inhalts) 3.0.2
- rtehtmlarea (rich text editor, der auch im firefox etc funktioniert) 1.1.3
- cc_awstats (umfangreiche logfiles) 0.10.0
- w4x_backup (backup funktion) 0.9.1
- kj_recycler (endgültiges löschen von inhalten) 3.2.0
- loginusertrack (überwachung von logins) 1.1.0
- t3quixplorer (explorer mit grundlegenden funktionen) 1.6.0
- mw_shell (shell befehle über php abgeben können) 1.0.5
- simulatebe (frontend editing - verknüpfung fe - be user) 1.0.0
- css_filelinks (filelinks mit css formatieren) 0.1.3
- sl_css_imgtext (images mit css formatieren samt title und alt attribut) 0.0.0
- css_styled_multimedia (multimedia mit css formatieren) 0.1.3
- dh_linklayout (interne, externe und malto links verschieden formatieren) 0.1.0
- julle_formreceipt (formular-kopie wird an absender geschickt) 1.0.0
- metatags (metatag angaben machen global wie auch seitenbezogen) 1.0.4
- ts_language_de / ru (benötigte sprachen für multisprachfähigkeit)
- jph_codesnippets (codeschnippsel als zusätzliches inhaltselement) 0.2.0
- indexed_search (suchmaschine innerhalb indizierter seiten) 2.1.3
- ch_is_templates (index search ausgabe per template formatieren) 1.1.12
- arotea_loginbox (plugin für newloginbox) 0.1.0
- newloginbox (leistungsfähigerer login) 2.2.10
- tt_news (umfangreiches und gut anpassbares newssystem) 2.2.24
- cron_printlink (druckerfreundliche ausgabe) 0.2.1
- macina_searchbox (leicht einzubindendes suchfeld) 2.2.0
- tipafriend (seite per email weiterempfehlen) 1.0.4
- pdf_generator (pdf online generieren) 3.0.2
- popup_manager (seite als popup deklarieren) 1.1.2
- htmldoc_linux (htmldoc - grundlage für pdf_generator) 0.0.0
- news_author_rel (autor für news aus be-user liste auswählen) 0.2.0
html template:
<!-- ###document### -->
<div id="pagewidth">
<div id="header">
<span class="headerimage">
<!-- ###headerimage### -->
<!-- ###headerimage### -->
</span>
</div>
<div id="wrapper">
<div id="sidebar">
<div id="languages">
<!-- ###languages### -->
<!-- ###languages### -->
</div>
<div id="topmenu">
<!-- ###topnavigation### -->
<!-- ###topnavigation### -->
</div>
<div id="navigation">
<!-- ###navigation### -->
<!-- ###navigation### -->
</div>
<div id="search">
<!-- ###search### -->
<!-- ###search### -->
</div>
<div id="login">
<!-- ###login### -->
<!-- ###login### -->
</div>
</div>
<div id="container">
<div id="containerheader">
<span class="pathway">
<!-- ###pathway### -->
<!-- ###pathway### -->
</span>
<span class="exports">
<!-- ###pdf### -->
<!-- ###pdf### -->
<!-- ###tip### -->
<!-- ###tip### -->
<!-- ###print### -->
<!-- ###print### -->
</span>
</div>
<div id="content">
<!--TYPO3SEARCH_begin-->
<!-- ###content### -->
<!-- ###content### -->
<!--TYPO3SEARCH_end-->
</div>
</div>
<div id="footer_outer">
<div id="footer_inner">
<!-- ###footertext### -->
<!-- ###footertext### -->
<!-- ###bottomnavigation### -->
<!-- ###bottomnavigation### -->
</div>
</div>
</div>
</div>
<!-- ###document### -->
include static des root-templates:
- plugin.alt.print(98-)
include static (from extensions) des root-templates:
- css styled content (css_styled_content)
- css styled imgtext (sl_css_imgtext)
- css styled multimedia (css_styled_multimedia)
- css based tmpl (tt_news)
- loginbox for better login plugin (arotea_loginbox)
typoscript constants des root-templates:
#tipafriend konfigurieren -- ext: tipafriend installieren
plugin.tipafriend {
file.templateFile = fileadmin/templates/ext/tipafriend/tipafriend_template.tmpl
PIDtipForm = 32
}
[globalVar = GP:L = 2]
#tipafriend für sprache uid=2 konfigurieren
plugin.tipafriend {
file.templateFile = fileadmin/templates/ext/tipafriend/tipafriend_template_ru.tmpl
PIDtipForm = 32
}
[global]
[globalVar = GP:L = 1]
#tipafriend für sprache uid=1 konfigurieren
plugin.tipafriend {
file.templateFile = fileadmin/templates/ext/tipafriend/tipafriend_template_en.tmpl
PIDtipForm = 32
}
[global]
#druckversion konfigurieren -- static: plugin.alt.print erforderlich
plugin.alt.print {
file.template = fileadmin/templates/ext/alt_print/molfi_alt_print.tmpl
file.stylesheet = fileadmin/templates/ext/alt_print/molfi_alt_print.css
}
#pdf-export konfigurieren -- ext: pdf_generator installieren
pdf_generator {
additional_params = --portrait --pagemode document --permissions print --encryption --pagelayout one --size A4 --bodyfont Helvetica --fontsize 11 --headfootfont Helvetica --headfootsize 11 --logoimage fileadmin/images/favicon.gif --header lt: --footer ... -t pdf13
string_search1 = /*<![CDATA[*/
string_replace1 = /* <![CDATA[ */
string_search2 = /*]]>*/
string_replace2 = /* ]]> */
}
#newssystem konfigurieren -- ext: tt_news installieren
plugin.tt_news {
allowCaching = 1
file.templateFile = fileadmin/templates/ext/tt_news/tt_news_v2_template_molfi.html
pid_list = 2
singlePid = 30
datetimeDaysToArchive = 90
archiveTypoLink.parameter = 29
latestMaxH = 65
latestLimit = 10
}
typoscript setup code des root-templates:
#suchformular konfigurieren -- ext: ch_is_templates installieren
plugin.tx_indexedsearch.templateFile = fileadmin/templates/ext/ch_is_templates/molfi_search.html
#metatags konfigurieren -- ext: metatags installieren
plugin.meta >
plugin.meta = PHP_SCRIPT
plugin.meta {
file = EXT:metatags/meta.php
global {
description = {$plugin.meta.description}
description_2 = {$styles.content.meta.site_description}
keywords = {$plugin.meta.keywords}
keywords_2 = {$styles.content.meta.site_keywords}
robots = index, follow
copyright = (c) molfi.de
author = stefan molzen
language = de
revisit = 30
}
local {
#zuweisen der alternativen description und keywords felder
description.field = description
keywords.field = keywords
}
flags {
#alternative felder nutzen
useSecondaryDescKey = 1
#globale description und keywords nicht nutzen
alwaysGlobalDescription = 0
alwaysGlobalKeywords = 0
#dc standard metatags nutzen
DC = 1
}
}
page.headerData.999 < plugin.meta
frameset.headerData.999 < plugin.meta
#mailformular konfigurieren
#css klassenerweiterung im html-code einfügen
tt_content.mailform.20.params.submit = class="button"
tt_content.mailform.20.params.check = class="check"
#filelinks files konfigurieren -- ext: css_filelinks installieren
#formatierung überschreiben. icon wird nicht mehr per css zugeordnet, sondern aus einem verzeichnis per img-tag eingebunden (wegen kompatibilität)
tt_content.uploads.20.layout{
global = <div class="filelinks">###FILE###</div>
file = <div class="fileitem"><img src="t3lib/gfx/fileicons/###FILEEXT###.gif" alt="" title="" /> <a href="###URL###">###TITLE###</a> ###FILESIZE###<div class="description">###DESCRIPTION###</div></div>
fileSize {
layout = (###SIZE### ###SIZEFORMAT###)
char = none
format = auto
desc = B|KB|MB
round = 2
}
hideNotProcessedMarkers = 1
description.field = imagecaption
}
#login protokollierung aktivieren -- ext: loginusertrack installieren
config.tx_loginusertrack_enable = 1
#popup konfigurieren
#popup fenster ohne rand um bild
tt_content {
textpic.20{
colSpace = 5
rowSpace = 5
borderThick = 1
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <a href="javascript:close();"> | </a>
width = 1024m
height = 768m
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
image.20 {
colSpace = 5
rowSpace = 5
borderThick = 1
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <a href="javascript:close();"> | </a>
width = 1024m
height = 768m
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
}
#backend simulation für frontend editing -- ext: simulatebe installieren
page.headerData.10 < plugin.tx_simulatebe_pi1
#admin panel aktivieren
config.admPanel = 1
#body tag konfigurieren
page.bodyTag =<body>
#h1 header wrappen
lib.stdheader.10.1.fontTag = <h1 class="csc-firstHeader">.:: | ::.</h1>
#toplink konfigurieren
#standard-text to-top ändern in ein bild
tt_content.stdWrap.innerWrap2 = | <div class="toplink"><a href="#"><img src="fileadmin/images/pfeil_oben.gif" alt="" title="" /</a></div>
#RichTextEditor konfigurieren -- ext: rtehtmlarea installieren
#erlaubte tags festlegen
RTE.default.proc.allowTags = tooltip,a,br,b,i,u,img,p,dd,dl,dt
RTE.default.proc.HTMLparser_rte.tags.mycustomtag.protect =1
#statische dokumente simulieren
config {
simulateStaticDocuments_noTypeIfNoTitle = 1
simulateStaticDocuments = 1
#unwandlungsmethode festlegen
simulateStaticDocuments_pEnc=md5
simulateStaticDocuments_addTitle=22
#umzuwandelnde textketten festlegen
simulateStaticDocuments_pEnc_onlyP = cHash, L, print, tx_ttnews[backPid], tx_ttnews[tt_news], tx_ttnews[pS], tx_ttnews[pL], tx_ttnews[arc], tx_ttnews[cat], tx_ttnews[pointer], tx_ttnews[swords], tipUrl, type, attachment, filename, tx_indexedsearch[ext]
}
#weblog konfigurieren -- ext: cc_awstats installieren
config {
stat = 1
stat_apache = 1
stat_apache_logfile = molfi_de_privat.log
}
#tipafriend konfigurieren -- ext: tipafriend installieren
temp.tipafriend = USER
temp.tipafriend {
userFunc = tx_tipafriend->main_tipafriend
code = TIPLINK
templateFile = {$plugin.tipafriend.file.templateFile}
typolink.parameter = {$plugin.tipafriend.PIDtipForm}
}
#druckversion konfigurieren -- ext: cron_printlink installieren
plugin.tx_cronprintlink_pi1 {
include_post_vars = 1
linkContent = IMAGE
linkContent.file = fileadmin/images/icon_printer.gif
popupWindowparams = resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=600
}
#clear.gif entfernen
tt_content {
image.20.spaceBelowAbove = 0
header.stdWrap.space = 0|0
stdWrap.space = 0|0
stdWrap.spaceBefore = 0
stdWrap.spaceAfter = 0
textpic.20.noStretchAndMarginCells = 1
image.20.noStretchAndMarginCells = 1
}
lib.stdheader.stdWrap.space = 0|0
#headerimage konfigurieren
#im page header unter media angegebenes bild auslesen und verwerten
temp.headerimage = IMAGE
temp.headerimage {
file.import {
cObject = TEXT
cObject.value = {$template_path}{$basicHeaderImage}
cObject.override {
required = 1
data = levelmedia: -1, "slide"
wrap = uploads/media/|
listNum = 0
}
}
}
#spamschutz aktivieren
config {
spamProtectEmailAddresses = 3
spamProtectEmailAddresses_atSubst = (at)
}
#pdf-export konfigurieren -- ext: pdf_generator installieren
temp.pdf = TEXT
temp.pdf {
value = <img src="fileadmin/images/icon_pdf.gif" alt="" title="" />
postUserFunc = tx_pdfgenerator->makePdfLink
postUserFunc.target =
postUserFunc.no_blur = 1
#mime type so definieren, dass das pdf direkt zum download angeboten wird
postUserFunc.attachment = 2
}
#plugin.alt.print konfigurieren -- static: plugin.alt.print erforderlich
alt_print {
headerData {
10 = TEXT
10.value = <meta name="robots" content="noindex" />
}
10.marks {
#neue marker im geänderten template ansprechen
CONTENT < styles.content.get
#typo3 host ausgeben
SITETITLE = TEXT
SITETITLE.data = getindpenv:TYPO3_HOST_ONLY
#vorangegangene seite (referer) ausgeben
PAGEURL = TEXT
PAGEURL.data = getenv:HTTP_REFERER
#navigations titel bzw titel der seite ausgeben
PAGE_TITLE_ALT = TEXT
PAGE_TITLE_ALT.field = nav_title//title
}
}
#footer definieren
temp.footer = COA
temp.footer {
#jahreszahl ausgeben
10 = TEXT
10.data = date:U
10.strftime = %Y
10.wrap= © 2001 - |
20 = TEXT
20.value = molfi.de |
}
#doctype umstellen
config.doctype = xhtml_strict
config.xhtml_cleaning = all
config.htmlTag_langKey = de
#suche konfigurieren -- ext: macina_searchbox + indexed_search installieren
plugin.tx_macinasearchbox_pi1 {
pidSearchpage = 28
templateFile = fileadmin/templates/ext/macina_searchbox/molfi_template.htm
}
#indexierung aktivieren, damit indexed search funktioniert
page.config.index_enable = 1
#auch für doc, rtf etc
page.config.index_externals = 1
#diverse inline-css deaktivieren ... definition durch css-datei
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE =
plugin.tx_slcssimgtext._CSS_DEFAULT_STYLE =
plugin.tx_arotealoginbox_pi1._CSS_DEFAULT_STYLE =
plugin.tx_jphcodesnippets_pi._CSS_DEFAULT_STYLE =
plugin.tx_cssfilelist._CSS_DEFAULT_STYLE =
plugin.tx-newloginbox-pi3._CSS_DEFAULT_STYLE =
#mehrsprachigkeit konfigurieren
config.linkVars = L
#deutsch uid 0
config.sys_language_uid = 0
config.locale_all = german
config.language = de
#login konfigurieren -- ext: arotea_loginbox installieren
plugin.tx_arotealoginbox_pi1 = USER_INT
plugin.tx_arotealoginbox_pi1 {
pidUserstorage = 1
templateFile = fileadmin/templates/ext/arotealoginbox/molfi_template.html
}
#newssystem konfigurieren -- ext: tt_news installieren
plugin.tt_news {
#popup konfigurieren
#bilder randlos im popup
displaySingle.image.imageLinkWrap {
enable = 1
bodyTag = <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <a href="javascript:close();"> | </a>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
#frontend editing aktivieren
general_stdWrap.editPanel = 1
#erlaubte aktionen im fe editing
general_stdWrap.editPanel.allow = edit,new
#standard-parser aktivieren
general_stdWrap.parseFunc < tt_content.text.20.parseFunc
newsFiles.file.wrap = |
#datum bei releated news entfernen
getRelatedCObject.10.default.20.field =
getRelatedCObject.10.default.20.strftime =
getRelatedCObject.10.default.20.wrap =
displayLatest {
imageWrapIfAny =
image.stdWrap.spaceAfter = 0
date_stdWrap.strftime= %d. %B %Y
time_stdWrap.strftime= %H:%M Uhr
}
displaySingle {
date_stdWrap.strftime= %d. %B %Y
time_stdWrap.strftime= %H:%M Uhr
}
displayList {
date_stdWrap.strftime= %d. %B %Y
time_stdWrap.strftime= %H:%M Uhr
}
}
#englisch uid 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = english
#newssystem für sprache uid=1 englisch konfigurieren
plugin.tt_news {
displayLatest {
date_stdWrap.strftime= %B %d, %Y
time_stdWrap.strftime= %h:%M %A
}
displaySingle {
date_stdWrap.strftime= %B %d, %Y
time_stdWrap.strftime= %h:%M %A
}
displayList {
date_stdWrap.strftime= %B %d, %Y
time_stdWrap.strftime= %h:%M %A
}
}
[global]
#russich uid 2
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = ru
config.locale_all = russian
#newssystem für sprache uid=2 russisch konfigurieren
plugin.tt_news {
displayLatest {
date_stdWrap.strftime= %d. %B %Y
time_stdWrap.strftime= %H:%M Uhr
}
displaySingle {
date_stdWrap.strftime= %d. %B %Y
time_stdWrap.strftime= %H:%M Uhr
}
displayList {
date_stdWrap.strftime= %d. %B %Y
time_stdWrap.strftime= %H:%M Uhr
}
}
[global]
#mehrsprachigkeit konfigurieren
includeLibs.something = fileadmin/scripts/molfi_languageMenu_ttnews.php
multilanguage.30 = USER
multilanguage.30 {
userFunc = user_languageMenu
}
#seite erstellen
page = PAGE
page {
typeNum = 0
#css datei einbinden
stylesheet = fileadmin/templates/molfi/css/template_css.css
#favicon einbinden
shortcutIcon = fileadmin/images/favicon.ico
}
#page ein template zuweisen
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/templates/molfi/templatep.html
workOnSubpart = document
#subparts deklarieren
subparts {
#inhaltsbereich -- ext: css_styled_content installieren
#content "normal" übergeben
content < styles.content.get
#headerbild
headerimage < temp.headerimage
#hauptnavigation
navigation = HMENU
navigation.1 = TMENU
navigation.1.NO {
allWrap = <div class="leftnav">|</div>
}
navigation.1.ACT = 1
navigation.1.ACT {
allWrap = <div class="leftnav-act">|</div>
}
navigation.2 = TMENU
navigation.2.NO {
allWrap = <div class="leftnav2">|</div>
}
navigation.2.ACT = 1
navigation.2.ACT {
allWrap = <div class="leftnav2-act">|</div>
doNotLinkIt = 1
}
#navigation oben
#ausgesuchte seiten in navigation übernehmen
#option-split sorgt dafür, dass zwischen den seiten ein | als Trennstrich erscheint
#aktives element wird nicht verlinkt
topnavigation = HMENU
topnavigation.special = list
topnavigation.special.value = 3, 4
topnavigation.1 = TMENU
topnavigation.1.NO {
stdWrap.data = field : title
allWrap = |
after = </span> | |*| </span> | |*| </span>
before = <span class="topmenu"> |*| <span class="topmenu"> |*| <span class="topmenu">
}
topnavigation.1.ACT = 1
topnavigation.1.ACT {
stdWrap.data = field : title
allWrap = |
after = </span> | |*| </span> | |*| </span>
before = <span class="topmenu-act"> |*| <span class="topmenu-act"> |*| <span class="topmenu-act">
doNotLinkIt = 1
}
#navigation unten
bottomnavigation = HMENU
bottomnavigation.special = list
bottomnavigation.special.value = 26, 27
bottomnavigation.1 = TMENU
bottomnavigation.1.NO {
stdWrap.data = field : title//nav_title
allWrap = |
after = | |*| | |*|
before = |*| |*|
}
#navigation klickpfad
#option-split sorgt dafür dass zwischen den navigationselementen ein bild eingefügt wird
#aktives seitenelement wird nicht verlinkt
pathway = HMENU
pathway.special = rootline
pathway.special.range = 0|-1
pathway.1 = TMENU
pathway.1.NO {
allWrap = |*| | <img src="fileadmin/templates/molfi/images/arrow.png" alt="" title="" /> |*| |
doNotLinkIt = |*| |*| 1
}
#suche einbinden -- ext: macina_searchbox + indexed_search installieren
search < plugin.tx_macinasearchbox_pi1
#mehrsprachigkeit einbinden -- script: user_languageMenu
languages < multilanguage.30
#login einbinden -- ext: newloginbox + arotea_loginbox installieren
login < plugin.tx_arotealoginbox_pi1
#pdf export einbinden -- ext: pdf_generator + htmldoc installieren
pdf < temp.pdf
#tipafriend einbinden -- ext: tipafriend installieren
tip < temp.tipafriend
#druckversion einbinden -- ext: cron_printlink installieren
print < plugin.tx_cronprintlink_pi1
#footertext einbinden
footertext < temp.footer
}
}
das formatierende css sieht wie folgt aus:
body {
text-align: center;
background: url(../images/bg.gif) fixed repeat;
padding: 0px;
margin: 5px 0px 5px 0px;
}
#pagewidth {
margin: 0px auto 0px auto;
text-align:left;
padding: 2px;
width: 770px;
font-family: "Verdana","Helvetica","Arial",sans-serif;
border: 1px solid #000000;
background-color: #808080;
color: #000000;
}
#sidebar {
width: 203px;
float: left;
}
#container {
float: right;
width: 520px;
margin:0px;
padding:0px;
position:relative;
right:20px;
}
#containerheader {
padding-top:3px;
margin-bottom:3px;
}
.exports {
float:right;
}
#wrapper {
width: 100%;
padding: 0px;
margin: 0px;
background: white url(../images/bgcontainer.gif) repeat-y left;
clear:both;
color: #000000;
}
#header {
background: white url(../images/topgrad.png);
height: 100px;
color: #FFFFFF;
}
.headerimage {
float:left;
position:relative;
top:10px;
left:48px;
}
.pathway {
margin: 0px;
position:relative;
top:2px;
float:left;
}
#footer_outer {
background: url(../images/bottomgrad.png);
border-top: 1px solid #000000;
clear: both;
margin: 0px;
padding: 0px;
width:100%;
}
#content {
clear:both;
margin: 0px 0px 20px 0px;
padding: 0px;
border-top:1px solid #808080;
}
#footer_inner {
padding: 5px;
margin: 0px;
text-align: center;
color: #E7E7E7;
}
#languages {
text-align: center;
background-color: #DCDCDC;
padding: 8px 0px 0px 0px;
margin: 0px;
}
#languages img {
border:0px;
margin:0px 2px 0px 2px;
}
#topmenu {
text-align:center;
border-bottom: 3px solid #ffffff;
background-color: #DCDCDC;
padding:5px 0px 8px 0px;
margin:0px 0px 15px 0px;
}
div {
font-size: 11px;
line-height: 16px;
}
#search, #login {
margin: 0px 0px 15px 0px;
padding: 0px;
background-color: #E7E7E7;
border-top: 3px solid #ffffff;
border-bottom: 3px solid #ffffff;
text-align: left;
}
#navigation {
margin: 0px 0px 20px 0px;
padding: 0px;
text-align: left;
}
.csc-mailform {
padding:0px;
margin:0px;
border-collapse:collapse;
}
.csc-form-labelcell {
padding: 0px 20px 0px 0px;
}
.tx-macinasearchbox-pi1 input.search, .tx-arotealoginbox-pi1 input.homeLoginForm, .csc-form-fieldcell input, .tx-indexedsearch-searchbox input.tx-indexedsearch-searchbox-sword {
color: #000000;
font-size: 11px;
border: 1px solid #808080;
background-color: #FFFFFF;
margin: 1px 5px 1px 0px;
width: 130px;
padding: 2px;
}
.csc-form-fieldcell input.check {
width:auto;
border:0px;
}
.csc-form-fieldcell textarea {
color: #000000;
font-size: 11px;
border: 1px solid #808080;
background-color: #FFFFFF;
margin: 1px 5px 1px 0px;
width: 280px;
padding: 2px;
font-family: "Verdana","Helvetica","Arial",sans-serif;
}
.tx-macinasearchbox-pi1 input.search_button, .tx-arotealoginbox-pi1 input.homeLoginFormButton, .csc-form-fieldcell input.button, .tx-indexedsearch-searchbox input.tx-indexedsearch-searchbox-button {
color: #000000;
font-size: 11px;
border: 1px solid #808080;
background-color: #FFFFFF;
margin: 1px 5px 1px 0px;
width: 60px;
padding:0px;
}
.tx-macinasearchbox-pi1 h3, .tx-arotealoginbox-pi1 h3 {
display:block;
padding: 0px 5px 0px 5px;
margin:2px 0px 5px 0px;
font-weight:bold;
font-size: 11px;
background-color: #DCDCDC;
}
.tx-arotealoginbox-pi1 p, .tx-macinasearchbox-pi1 p {
font-size: 11px;
line-height: 16px;
padding: 0px 5px 2px 5px;
margin:0px;
}
p {
font-size: 11px;
color: #000000;
padding: 0px;
margin: 0px;
}
.contenttable {
width: auto;
overflow: hidden;
border-collapse:collapse;
}
.contenttable p {
margin-right:10px;
}
.csi-caption {
padding:0px;
margin: 0px;
}
.csc-header h1 {
font-size: 14px;
font-weight: bold;
margin: 30px 0px 10px 0px;
color: #000000;
}
.csc-header h3 {
font-size:11px;
color: #000000;
padding:0px;
margin:20px 0px 3px 0px;
}
.csc-header h5 {
font-size:11px;
font-weight:normal;
color: #000000;
padding:0px;
margin: 15px 0px 0px 0px;
}
.csc-bulletlist {
margin:0px auto 0px auto;
list-style-type:square;
}
.csc-header-n1 .csc-firstHeader {
margin-top:20px;
}
.csc-uploads-fileName a {
text-decoration: underline;
color: #808080;
}
.leftnav a{
color: #00008B;
text-decoration: none;
padding: 0px 5px 0px 5px;
font-weight: bold;
line-height: 20px;
display: block;
}
.leftnav a:hover{
color: #FFFFFF;
background-color: #00008B;
}
.leftnav-act a {
color: #FFFFFF;
display: block;
text-decoration: none;
font-weight: bold;
padding: 0px 5px 0px 5px;
background-color: #00008B;
line-height: 20px;
}
.leftnav2 a {
color: #00008B;
text-decoration: none;
padding: 0px 5px 0px 5px;
line-height: 20px;
display: block;
}
.leftnav2 a:hover{
color: #FFFFFF;
background-color: #6495ED;
}
.leftnav2-act {
color: #FFFFFF;
display: block;
text-decoration: none;
padding: 0px 5px 0px 5px;
background-color: #6495ED;
line-height: 20px;
}
.csc-sitemap.csc-sitemap-level1 a{
text-decoration: underline;
color: #000000;
padding: 0px;
line-height: 20px;
display: block;
margin: 10px 0px 0px 0px;
}
.csc-sitemap.csc-sitemap-level2 a{
text-decoration: underline;
color: #000000;
padding: 0px 0px 0px 20px;
margin: 0px;
line-height: 20px;
display: block;
}
.toplink {
text-align:right;
margin-top:20px;
}
#footer_inner a {
text-decoration: underline;
color: #E7E7E7;
}
.pathway a {
color: #808080;
text-decoration: underline;
}
.topmenu a{
color: #000000;
text-decoration: none;
font-weight: bold;
padding:2px;
border: 1px solid #000000;
}
.topmenu a:hover{
color: #000000;
font-weight: bold;
border: 1px solid #000000;
background-color: #f9f9f9;
}
.topmenu-act {
color: #000000;
border: 1px solid #000000;
font-weight: bold;
padding:2px;
background-color: #f9f9f9;
}
img {
border: 0px;
margin: 0px;
padding: 0px;
}
form {
padding: 0px;
margin: 0px;
}
.news-latest-container, .news-list-container {
background-color: #FFFFFF;
padding: 0px;
margin:0px;
}
.news-latest-gotoarchive {
font-weight: normal;
margin-top: 5px;
clear: both;
}
.news-latest-gotoarchive A:LINK, .news-latest-gotoarchive A:VISITED, .news-latest-gotoarchive A:HOVER, .news-single-backlink, .news-single-backlink a {
color: #808080;
text-decoration: underline;
margin-top:10px;
clear:both;
}
.news-latest-gotoarchive A, .news-latest-morelink A, .news-list-morelink A, .news-single-item a, .bodytext a {
color: #808080;
text-decoration: underline;
}
.news-latest-container A, .news-list-container A {
color: #000000;
text-decoration: none;
}
.news-latest-item, .news-list-item, .news-single-item {
background-color: #FFFFFF;
clear: both;
padding: 0px;
margin-bottom: 10px;
}
.news-latest-item IMG, .news-list-item IMG, .news-single-img {
margin: 0px 15px 15px 0px;
float: left;
}
.news-latest-date, .news-list-date, .news-single-timedata {
font-size: 11px;
}
.news-latest-container h2, .news-list-container H2, .news-single-item H2 {
color: #000000;
text-decoration: none;
font-weight: bold;
font-size: 11px;
padding: 0px;
margin: 0px;
}
.news-single-item H3 {
color: #000000;
text-decoration: none;
font-size: 11px;
font-weight:normal;
padding:0px;
margin:0px 0px 5px 0px;
}
.news-single-imgcaption {
clear:both;
font-size: 9px;
background-color:#E7E7E7;
margin-bottom:10px;
}
.news-single-related,.news-single-files,.news-single-links {
margin:0px;
padding-bottom:20px;
}
.news-single-additional-info {
margin-top: 30px;
clear:both;
}
.news-single-related DD, .news-single-links DD, .news-single-files DD {
margin-left:0px;
}
.news-single-related DT, .news-single-links DT, .news-single-files DT {
font-weight: bold;
margin-bottom:5px;
}
.csc-menu.csc-menu-2 {
margin: 15px 0px 0px 0px;
width: 203px;
}
.tx-jphcodesnippets-pi {
font-family: 'Courier New', Courier, monospace;
font-weight: normal;
padding:10px;
background-color:#e7e7e7;
border: 1px dashed #000000;
margin: 5px 0px 5px 0px;
}
.tx-jphcodesnippets-pi .imp { font-weight: bold; color: red; }
.tx-jphcodesnippets-pi .ln-xtra { background: #ffcccc; }
.tx-jphcodesnippets-pi li { background: #e7e7e7; }
.tx-jphcodesnippets-pi li.li2 { background: #ffffff; }
.tx-jphcodesnippets-pi .kw1 { color: #b1b100; }
.tx-jphcodesnippets-pi .kw2 { color: #000000; font-weight: bold;}
.tx-jphcodesnippets-pi .kw3 { color: #000066;}
.tx-jphcodesnippets-pi .co1 { color: #808080; font-style: italic; }
.tx-jphcodesnippets-pi .co2 { color: #808080; font-style: italic; }
.tx-jphcodesnippets-pi .coMULTI { color: #808080; font-style: italic; }
.tx-jphcodesnippets-pi .es0 { color: #000099; font-weight: bold; }
.tx-jphcodesnippets-pi .br0 { color: #66cc66; }
.tx-jphcodesnippets-pi .st0 { color: #ff0000; }
.tx-jphcodesnippets-pi .nu0 { color: #cc66cc; }
.tx-jphcodesnippets-pi .me1 { color: #006600; }
.tx-jphcodesnippets-pi .me2 { color: #006600; }
.tx-jphcodesnippets-pi .re0 { color: #0000ff; }
.filelinks .fileitem{margin-bottom:4px;}
.filelinks a:hover{color:#808080;text-decoration:underline;}
.filelinks a{color:#000000;text-decoration:underline; }
.filelinks span{display:block;}
.filelinks .description {padding: 0px 0px 0px 22px;}
.filelinks img {position:relative;top:3px;}
.tx-indexedsearch .tx-indexedsearch-whatis P .tx-indexedsearch-sw { font-weight:bold; }
.tx-indexedsearch .tx-indexedsearch-whatis { margin:10px 0px 5px 0px; }
.tx-indexedsearch P.tx-indexedsearch-noresults { text-align:left; font-weight:normal; }
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-title P { margin: 15px 0px 0px 0px; }
.tx-indexedsearch .tx-indexedsearch-res P .tx-indexedsearch-redMarkup { color:red; }
.tx-indexedsearch .tx-indexedsearch-res a { text-decoration: underline; color: #808080; }
.tx-indexedsearch .tx-indexedsearch-res img {position:relative; top:3px;}
.tx-indexedsearch .tx-indexedsearch-browsebox {margin:15px 0px 0px 0px;}
.tx-indexedsearch .tx-indexedsearch-browsebox a { text-decoration: underline; color: #808080; }
mehrsprachigkeitsscript, welches auch mit tt_news funktioniert:
(ein wenig modifiziert; siehe auch diesen post: #35464)
<?php
/**
* Copyright notice
*
* (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
* A copy is found in the textfile GPL.txt and important notices to the license
* from the author is found in LICENSE.txt distributed with these scripts.
*
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* Creates a language-selector menu with three flags, an english, a danish and a german
* flag for each language supported on the site.
*
*
* $Id: tt_news_languageMenu.php,v 1.14 2005/05/15 19:18:18 rupertgermann Exp $
*
* @author Rupert Germann <rupi@gmx.li>
*/
/**
* language menu that keeps the links vars from tt_news
*
* @param [type] $content: ...
* @return void
* @access public
*/
function user_languageMenu($content) {
$flagpath = 'fileadmin/images/flags/';
// image files for deafultlanguage
$defaultflag = array(
'on' => '<img src="'.$flagpath.'flag_de.gif" alt="DE" title="DE" />',
'off' => '<img src="'.$flagpath.'flags/flag_de_d.gif" alt="DE" title="DE" />',
) ;
// image files for additional languages. the numbers are the uids of the system languages
$flagimages = array(
'4' => array(
'on' => '<img src="'.$flagpath.'flag_en.gif" alt="EN" title="EN" />',
'off' => '<img src="'.$flagpath.'flag_en_d.gif" alt="" title="" />'
),
'5' => array(
'on' => '<img src="'.$flagpath.'flag_ru.gif" alt="RU" title="RU" />',
'off' => '<img src="'.$flagpath.'flag_ru_d.gif" alt="RU" title="RU" />'
)
);
// First, select all pages_language_overlay records on the current page. Each represents a possibility for a language.
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages_language_overlay', 'pid=' . intval($GLOBALS['TSFE']->id) . $GLOBALS['TSFE']->sys_page->enableFields('pages_language_overlay'), 'sys_language_uid');
$langArr = array();
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$langArr[$row['sys_language_uid']] = $row['title'];
}
$queryString = explode('&', t3lib_div::implodeArrayForUrl('', $GLOBALS['_GET'])) ;
if ($queryString) {
while (list(, $val) = each($queryString)) {
$tmp = explode('=', $val);
$paramArray[$tmp[0]] = $val;
}
$excludeList = 'id,L,tx_ttnews[pointer]';
while (list($key, $val) = each($paramArray)) {
if (!$val || ($excludeList && t3lib_div::inList($excludeList, $key))) {
unset($paramArray[$key]);
}
}
$tmpParams = implode($paramArray, '&');
$newsAddParams = $tmpParams?'&' . $tmpParams:'';
}
// unset the global linkVar "L" for the language menu because it's build new in this script
$linkVarsBak = $GLOBALS['TSFE']->linkVars;
$tmplinkVars = t3lib_div::trimExplode('&', $GLOBALS['TSFE']->linkVars) ;
if ($tmplinkVars) {
while (list($kl, $vl) = each($tmplinkVars)) {
if (!$vl || preg_match('/L=[0-9]/', $vl)) {
unset($tmplinkVars[$kl]);
}
}
$GLOBALS['TSFE']->linkVars = implode('&', $tmplinkVars) ;
}
// Variables which can be filled how ever you want. They are active if the TSFE->sys_language_uid equals the language uid (notice that the uid has to fit to your own database)). Eg if the variables filled with <div> and </div> it is possible to layout the active language image.
$before = '';
$after = '';
// Pointer for the active language
// You can set $before with the string from $pointer. So it has the same
// function like the original
// $pointer = '<img src="t3lib/gfx/content_client.gif" title="" alt="" />';
$tmpLang = $GLOBALS['TSFE']->sys_language_uid;
$flags = array();
// flag for the default language
if ($GLOBALS['TSFE']->page['l18n_cfg']==1){ // = "Hide default Translation" is activated
$flags[0] = $defaultflag['off'];
} else {
$flags[0] = ($tmpLang == 0?''.$before.''.$defaultflag['on'].''.$after : $GLOBALS['TSFE']->cObj->typolink($defaultflag['on'], array('parameter' => $GLOBALS['TSFE']->id . '', 'additionalParams' => (!preg_match('/&L=[0-9]/', $newsAddParams)?$newsAddParams . '&L=0':$newsAddParams)))) ;
}
// flags for the additional language
if (is_array($flagimages)) {
foreach ($flagimages as $fk => $fv) {
if ($langArr[$fk]) {
$flags[$fk] = ($tmpLang == $fk?''.$before.''.$fv['on'].''.$after : $GLOBALS['TSFE']->cObj->typolink($fv['on'], array('parameter' => $GLOBALS['TSFE']->id . '', 'additionalParams' => (!preg_match('/&L=[0-9]/', $newsAddParams)?$newsAddParams . '&L=' . $fk:$newsAddParams))));
} else {
$flags[$fk] = $fv['off'];
}
}
}
// $content = '<div class="langmenu"><p>'. implode('', $flags) . '</p></div>';
$content = implode('', $flags);
// restore link vars
$GLOBALS['TSFE']->linkVars = $linkVarsBak;
return $content;
}
?>
template der druckerfreundlichen ansicht (die css-einstellungen sind nur marginal vom orginal abgeändert worden):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>molfi.de Druckversion</title>
</head>
<body>
<!-- ###DOCUMENT_BODY### begin The content between these subpart markers goes right into the body section of the webpage when displayed: -->
<img src="fileadmin/images/favicon.gif" title="" alt="" /> ###SITETITLE### | ###PAGE_TITLE_ALT###<br />
<a href="###PAGEURL###" title="">###PAGEURL###</a><br /><br />
<!-- ###PAGE_TITLE### | ###PAGE_SUBTITLE### | ###PAGE_AUTHOR### -->
<hr />
###CONTENT###
<br /><br /><br />
<hr />
<br /><br /><br />
<a href="javascript:window.print();" title="" /><img src="fileadmin/images/icon_printer.gif" title="" alt="" /></a> <a href="javascript:window.close();" title="" /><img src="fileadmin/images/closeButton.png" title="" alt="" /></a>
<!-- ###DOCUMENT_BODY### end -->
</body>
</html>
template der arotea_loginbox:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Template file for the "arotea_loginbox" extension.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h3>Template file for the "arotea_loginbox" extension.</h3>
<p><b>Available Markers:</b></p>
<ul>
<li>###USER### Internationalized User text</li>
<li>###PASS### Internationalized Pass text</li>
<li>###LOGIN### Internationalized Login text</li>
<li>###EMAIL### Internationalized Email text</li>
<li>###SINCE### Internationalized Since text</li>
<li>###LOGOUT### Internationalized Logout text</li>
<li>###LOGINPID### PID of the Login page</li>
<li>###USERSPID### PID of the Users Storage SysFolder</li>
<li>###SIGNUP### Link to the Signup page</li>
<li>###FORGOT### Link to the Forgot password page</li>
<li>###USER_DATA### User name as registered</li>
<li>###SINCE_DATA### Account creation date</li>
<li>###EMAIL_DATA### User email as registered</li>
</ul>
<p><b>Login Template:</b></p>
<!-- ###TEMPLATE_LOGIN### begin -->
<form action="###LOGINPID###" method="post">
<h3>###HEADER###</h3>
<p>
<input type="hidden" name="logintype" value="login" />
<input type="hidden" name="redirect_url" value="" />
<input type="hidden" name="pid" value="###USERSPID###" />
<input type="text" name="user" size="20" maxlength="128" class="homeLoginForm" />
<input type="password" name="pass" size="20" maxlength="20" class="homeLoginForm" />
<input type="submit" name="submit" value="###LOGIN###" class="homeLoginFormButton" />
###FORGOT###
###SIGNUP###
</p>
</form>
<!-- ###TEMPLATE_LOGIN### end -->
<p><b>Logout Template:</b></p>
<!-- ###TEMPLATE_LOGOUT### begin -->
<form action="###LOGINPID###" method="post">
<h3>###HEADER###</h3>
<p>
<input type="hidden" name="logintype" value="logout" />
<input type="hidden" name="redirect_url" value="index.php?id=68" />
<input type="hidden" name="pid" value="196" />
###USER### ###USER_DATA###<br />
<input type="submit" name="submit" value="###LOGOUT###" class="homeLoginFormButton" />
</p>
</form>
<!-- ###TEMPLATE_LOGOUT### end -->
</body>
</html>
template der inexed search engine (wesentlich abgeändert: nur noch ergebnisse werden angezeigt; und diese anders formatiert; am besten auf der homepage schauen):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Indexed Search Engine example template</title>
</head>
<body>
<h1>INDEXED SEARCH ENGINE TEMPLATES</h1>
<h2>EXAMPLE</h2>
<pre>
<strong>Common markers:</strong>
These are substituted in all indexed search engine templates:
<em>Markers:</em>
SEARCHFORM
RULES
HITS
SWORD
SWORD_PREV
SWPCHECKED
TYPE
DEFOP
MEDIA
LANG
SECTION
ORDER
DESC
RESULTS
GROUP
EXTENDEDRESUME
ADVANCEDSEARCH
SHOWRESULTCOUNT
PREVIOUS
MIDDLE
NEXT
BROWSEBOX1
WHATISSEARCHEDFOR
HITS
BROWSEBOX2
NORESULTS
ICON
RESULTNUMBER
TITLE
RATING
DESCRIPTION
SIZE
CREATED
MODIFIED
ACCESS
LANGUAGE
PATH
DESCRIPTION
SUBROW
EXT
SECHEADANCHOR
SECHEADTITLE
SECHEADCOUNTER
SECTIONLINK
<em>Stylesheets Markers (see sysext/index_search/pi/locallang.xml):</em>
SUBMITSTYLE
SWORDSTYLE
TPARAMS
WHATISSTYLE
LISTSTYLE
PBSTYLE
TITLESTYLE
ICONSTYLE
TCAPTIONSTYLE
PERCENTSTYLE
INFOSTYLE
STYLEDESCRIPTION
INFOSTYLE2
STYLESECHEAD
STYLESECLINKS
TPARAMSSECHEAD
<em>Language Markers (see sysext/index_search/ext_typoscript_setup.txt):</em>
LSEARCHFOR
LADDTOCURRENTSEARCH
LSUBMIT
LFORMMATCH
LSEARCHIN
LFROMSECTION
LORDERBY
LFORMSTYLE
LOTHERMATCHING
</pre>
<h3>TEMPLATE_MAIN</h3>
<em>This subpart is used to display the main page (i.e. default search form + rules + hits + pagebrowser)</em>
<!-- ###MAIN### begin -->
###HITS###
<!-- ###MAIN### end -->
<h3>TEMPLATE_DEFAULTSEARCH</h3>
<em>This subpart is used to display the default search form</em>
<!-- ###DEFAULTSEARCH### begin -->
<div searchboxstyle="">
<form action="###FORM###" method="post" name="tx_indexedsearch" style="margin: 0 0 0 0;">
<table tparams="">
<tr>
<td nowrap="nowrap"><p>###LSEARCHFOR### </p></td>
<td><input type="text" name="tx_indexedsearch[sword]" value="###SWORD###" swordstyle="" /> <input type="submit" name="tx_indexedsearch[submit_button]" value="###LSUBMIT###" submitstyle="" /></td>
</tr>
<tr>
<td></td>
<td>
<input type="hidden" name="tx_indexedsearch[sword_prev]" value="###SWORD_PREV###" />
<input type="checkbox" name="tx_indexedsearch[sword_prev_include] value=" 1="" swpchecked="" />
###LADDTOCURRENTSEARCH###
</td>
</tr>
<!--###MATCH### begin-->
<tr>
<td nowrap="nowrap"><p>###LFORMMATCH### </p></td><td>###TYPE### ###DEFOP###</td>
</tr>
<!--###MATCH### end-->
<!--###SEARCHIN### begin-->
<tr>
<td nowrap="nowrap"><p>###LSEARCHIN### </p></td><td>###MEDIA### ###LANG###</td>
</tr>
<!--###SEARCHIN### end-->
<!--###FROMSECTION### begin-->
<tr>
<td nowrap="nowrap"><p>###LFROMSECTION### </p></td><td>###SECTION###</td>
</tr>
<!--###FROMSECTION### end-->
<!--###ORDERBY### begin-->
<tr>
<td nowrap="nowrap"><p>###LORDERBY### </p></td><td><p>###ORDER### ###DESC### ###RESULTS###</p></td>
</tr>
<!--###ORDERBY### end-->
<!--###STYLE### begin-->
<tr>
<td nowrap="nowrap"><p>###LFORMSTYLE### </p></td><td><p>###GROUP### ###EXTENDEDRESUME###</p></td>
</tr>
<!--###STYLE### end-->
<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />
<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
<input type="hidden" name="tx_indexedsearch[ext]" value="###EXT###" />
</table>
</form>
<p>
###ADVANCEDSEARCH###
</p>
</div>
<!-- ###DEFAULTSEARCH### end -->
<h3>TEMPLATE_PAGEBROWSER</h3>
This subpart is used to display the pagebrowser
<!-- ###PAGEBROWSER### begin -->
<div pbstyle="">
<p>###PREVIOUS###</p>
<!--###CONTENT###-->
<!--###LIST_ITEM###-->
<p>###MIDDLE###</p>
<!--###LIST_ITEM###-->
<!--###CONTENT###-->
<p>###NEXT###</p>
</div>
<!-- ###PAGEBROWSER### end -->
<h3>TEMPLATE_GETDISPLAYRESULTS</h3>
<em>This subpart is used to display the getDisplayResults (i.e search-hits plus pagebrowser).</em>
<!-- ###GETDISPLAYRESULTS### begin -->
<div whatisstyle=""><p>###WHATISSEARCHEDFOR###</p></div>
###HITS###
###BROWSEBOX2###
<!--###NORESULTS### begin-->
<p noresultsstyle="">###NORESULTS###</p>
<!--###NORESULTS### end-->
<!-- ###GETDISPLAYRESULTS### end -->
<h3>TEMPLATE_PRINTRESULTROW</h3>
<em>This subpart is used to display the printResultRow (i.e single search-hit row).</em>
<!-- ###PRINTRESULTROW### begin -->
<div class="tx-indexedsearch-title"><p>###TITLE### ###ICON### ###ACCESS### ###LANGUAGE### ###RATING###</p></div>
<!--###RESUMSECTION###-->
<!--###RS_ITEM###-->
<p>###DESCRIPTION###</p>
<!--###RS_ITEM###-->
<!--###RESUMSECTION###-->
<!--###HEADERONLY###-->
<!--###HO_ITEM###-->
<p>###DESCRIPTION###</p>
<!--###HO_ITEM###-->
<!--###HEADERONLY###-->
<!--###SUBROWTITLE###-->
<!--###SR_TITLE###-->
<p><br />###LOTHERMATCHING###<br /><br /><p>
<!--###SR_TITLE###-->
<!--###SUBROWTITLE###-->
<!--###SUBROWS###-->
<!--###SR_ITEM###-->
<p>###SUBROW###</p>
<!--###SR_ITEM###-->
<!--###SUBROWS###-->
<!-- ###PRINTRESULTROW### end -->
<h3>TEMPLATE_SECTIONHEADER</h3>
<em>This subpart is used to display the SectionHeader.</em>
<!-- ###SECTIONHEADER### begin -->
<!-- ###SECTIONHEADER### end -->
<h3>TEMPLATE_SECTIONSLINKS</h3>
<em>This subpart is used to display the printResultSectionLinks.</em>
<!-- ###SECTIONSLINKS### begin -->
<div styleseclinks="">
<ul>
<!--###CONTENT###-->
<!--###LIST_ITEM###-->
<li>###SECTIONLINK###</li>
<!--###LIST_ITEM###-->
<!--###CONTENT###-->
</ul>
</div>
<!-- ###SECTIONSLINKS### end -->
</body>
</html>
template der macina_searchbox (wesentlich abgeändert, am besten auf der homepage schauen):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Template file for the"macina_searchbox"extension.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h3>Template file for the "macina_searchbox" extension.</h3>
<p><b>Available Markers:</b></p>
<ul>
<li>###HEADLINE### Displays the Headline</li>
<li>###ADVANCED### Advanced Search Link</li>
<li>###SUBMIT### Alttext for the submit button</li>
<li>###ACTLANG### UID of the actual language</li>
<li>###SEARCHPID### PID of the Searchpage</li>
</ul>
<!-- ###TEMPLATE### begin -->
<form action="###SEARCHPID###" method="post">
<h3>###HEADLINE###</h3>
<p>
<input class="search" name="tx_indexedsearch[sword]" type="text" />
<input class="search_button" name="tx_indexedsearch[submit_button]" type="submit" value="###SUBMIT###" />
<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />
<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
<input type="hidden" name="tx_indexedsearch[ext]" value="0" />
<input type="hidden" name="tx_indexedsearch[lang]" value="###ACTLANG###" />
<span class="advanced">###ADVANCED###</span>
</p>
</form>
<!-- ###TEMPLATE### end -->
</body>
</html>
tt_news template (wesentlich abgeändert, am besten auf der homepage schauen):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--
IMPORTANT: The stylesheet link below is only for testing the template file directly in a browser while editing it.
On the website the css styles for tt_news have to be include with the static TS template "default CSS style (tt_news)" or
with an external file (see tt_news/res/tt_news_v2_styles.css) which you include via TypoSript in the "page" object.
-->
<title>new News example template</title>
<link href="../res/tt_news_tut_main_stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br />
<br />
<br />
<h1>NEWS TEMPLATES</h1>
<h2>EXAMPLE</h2>
<br />
<br />
<br />
<pre>
<strong>Common markers:</strong>
These are substituted in all news item displaying templates:
<em>Markers:</em>
NEWS_UID - ID number (uid) of the news item
NEWS_TITLE - News item title
NEWS_AUTHOR - name of author
NEWS_EMAIL - email of author
NEWS_DATE - date
NEWS_TIME - time
NEWS_AGE - age of news item in minutes, hours, days or years
NEWS_SUBHEADER - subheader, if empty main content is inserted here in LIST and LATEST
NEWS_CONTENT - main content
NEWS_LINKS - news links
NEWS_CATEGORY - news item category
NEWS_CATEGORY_IMAGE - news item category image
NEWS_RELATED - links to related news
NEWS_IMAGE - news item images
PAGE_UID - Page id of the parent page (pid)
PAGE_TITLE - Title of the parent page of the news item
PAGE_AUTHOR - Page author, if any
PAGE_AUTHOR_EMAIL - Page author email, if any
<em>News Language Markers (see pi/locallang.php):</em>
LATEST_HEADER - header for the LATEST element
GOTOARCHIVE - link to archive page in latest template
ARCHIVE_HEADER - same for AMENU
MORE - more ;-)
TEXT_CAT - text output before categories and category images in LIST view (eg: 'categories:')
TEXT_CAT_LATEST - the same in a shorter form for the LATEST element (eg: 'cat:')
BACK_TO_LIST - link back to list-view in single-view template
ARCHIVE_EMPTY_MSG - no items in archive
SEARCH_EMPTY_MSG - message for empty search results
TEXT_NEWS_AGE - text inserted before the age of the news item
<em>Wrapped Subparts:</em>
LINK_ITEM - link to the news item single display
LINK_PREV - used in the pagebrowser
BROWSE_LINKS - used in the pagebrowser
LINK_NEXT - used in the pagebrowser
</pre>
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_LATEST</h3>
<em>This is the template for the latest news, typically displayed on a frontpage.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_LATEST### begin
This is the template for the latest news, typically displayed on a frontpage
-->
<div class="news-latest-container">
<!-- ###CONTENT### begin
This is the part of the template substituted with the list of news:
-->
<!-- ###NEWS### begin
Template for a single item
-->
<div class="news-latest-item">
<!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###-->
<span class="news-latest-date">###NEWS_DATE###</span>
<h2><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h2>
###NEWS_SUBHEADER###
</div>
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
<div class="news-latest-gotoarchive"><!--###LINK_ARCHIVE###--><img src="fileadmin/images/pfeil_rechts.gif" alt="" title="" /><!--###LINK_ARCHIVE###--></div>
</div>
<!-- ###TEMPLATE_LATEST### end -->
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_LIST</h3>
<em>This is the template for the list of news in the archive or news page or search.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_LIST### begin
This is the template for the list of news in the archive or news page or search
-->
<div class="news-list-container">
<!-- ###CONTENT### begin
This is the part of the template substituted with the list of news:
-->
<!-- ###NEWS### begin
Template for a single item
-->
<div class="news-list-item">
<!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###-->
<span class="news-list-date">###NEWS_DATE###</span>
<h2><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h2>
###NEWS_SUBHEADER###
</div>
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
<div class="news-list-browse">###BROWSE_LINKS###</div>
</div>
<!-- ###TEMPLATE_LIST### end -->
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_SINGLE</h3>
<em>This subpart is used to display single news items</em><br />
<br />
<br />
<!-- ###TEMPLATE_SINGLE### begin
This subpart is used to display single news items
-->
<div class="news-single-item">
###NEWS_IMAGE###
<div class="news-single-timedata">###NEWS_DATE###</div>
<h2>###NEWS_TITLE###</h2>
###NEWS_SUBHEADER###
###NEWS_CONTENT###
###ADDINFO_WRAP_B###
###TEXT_RELATED###
###NEWS_RELATED###
###TEXT_FILES###
###FILE_LINK###
###TEXT_LINKS###
###NEWS_LINKS###
###TEXT_RELATEDBYCATEGORY###
###NEWS_RELATEDBYCATEGORY###
###ADDINFO_WRAP_E###
###NEWS_SINGLE_PAGEBROWSER###
<div class="news-single-backlink">
<!--###LINK_ITEM###--><img src="fileadmin/images/pfeil_links.gif" alt="" title="" /><!--###LINK_ITEM###-->
</div>
</div>
<!-- ###TEMPLATE_SINGLE### end -->
<br />
<br /><hr />
<br />
<br />
<br />
<h3>TEMPLATE_SINGLE_RECORDINSERT</h3>
<em>This subpart is used to display single news items with the "Insert Records" content element </em><br />
<br />
<br />
<!-- ###TEMPLATE_SINGLE_RECORDINSERT### begin
This subpart is used to display single news items
-->
<div class="news-single-item">
<div class="news-single-timedata">###NEWS_DATE### ###NEWS_TIME### ###TEXT_NEWS_AGE### ###NEWS_AGE###</div>
<h2>###NEWS_TITLE###</h2>
###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
###NEWS_AUTHOR###
###NEWS_SUBHEADER###
###NEWS_IMAGE###
###NEWS_CONTENT###
###ADDINFO_WRAP_B###
###TEXT_RELATED###
###NEWS_RELATED###
###TEXT_FILES###
###FILE_LINK###
###TEXT_LINKS###
###NEWS_LINKS###
###TEXT_RELATEDBYCATEGORY###
###NEWS_RELATEDBYCATEGORY###
###ADDINFO_WRAP_E###
###COMMENTS###
###NEWS_SINGLE_PAGEBROWSER###
<div class="news-single-backlink">
<!--###LINK_ITEM###-->###BACK_TO_LIST###<!--###LINK_ITEM###-->
</div> </div>
<!-- ###TEMPLATE_SINGLE_RECORDINSERT### end --><br /><hr />
<br />
<br />
<br />
<h3>TEMPLATE_SINGLE_FORUM</h3>
<em>This subpart is used to display single news items with the "Insert Records" content element </em><br />
<br />
<br />
<!-- ###TEMPLATE_SINGLE_FORUM### begin
This subpart is used to display single news items
-->
<div class="news-single-item">
<div class="news-single-timedata">###NEWS_DATE### ###NEWS_TIME### ###TEXT_NEWS_AGE### ###NEWS_AGE###</div>
<h2>###NEWS_TITLE###</h2>
###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
###NEWS_AUTHOR###
###NEWS_SUBHEADER###
###NEWS_IMAGE###
###NEWS_CONTENT###
<div class="news-single-backlink">
<!--###LINK_ITEM###-->###BACK_TO_LIST###<!--###LINK_ITEM###-->
</div> </div>
<!-- ###TEMPLATE_SINGLE_FORUM### end -->
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_ARCHIVE</h3>
<em>Subpart for the news archive menu.</em><br />
<br />
<br />
<!-- ###TEMPLATE_ARCHIVE### begin
Subpart for the news archive menu
-->
<div class="news-amenu-container">
<h2>###ARCHIVE_HEADER###</h2>
<ul>
<!-- ###CONTENT### begin -->
<!-- ###MENUITEM### begin -->
<li><!--###LINK_ITEM###-->###ARCHIVE_TITLE###: ###ARCHIVE_COUNT### ###ARCHIVE_ITEMS###<!--###LINK_ITEM###--></li>
<!-- ###MENUITEM### end-->
<!-- ###CONTENT### end -->
</ul>
</div>
<!-- ###TEMPLATE_ARCHIVE### end -->
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_ARCHIVE_NOITEMS</h3>
<em>Shown if the archive has no items!</em><br />
<br />
<br />
<!-- ###TEMPLATE_ARCHIVE_NOITEMS### begin
Shown if the archive has no items!
-->
<div class="news-amenu-container">
<h2>###ARCHIVE_HEADER###</h2>
<ul>
<li>###ARCHIVE_EMPTY_MSG###</li>
</ul>
</div>
<!-- ###TEMPLATE_ARCHIVE_NOITEMS### end -->
<br />
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<h3>TEMPLATE_SEARCH</h3>
<em>Subpart for the search-form.</em><br />
<br />
<br />
<!-- ###TEMPLATE_SEARCH### begin
Subpart for the search-form
-->
<div class="news-search-form">
<form method="post" action="###FORM_URL###">
<input size="30" maxlength="100" type="text" name="tx_ttnews[swords]" value="###SWORDS###" />
<span class="news-search-form-submit"><input type="submit" name="search" value="###SEARCH_BUTTON###" /></span>
</form></div>
<!-- ###TEMPLATE_SEARCH### end -->
<br />
<hr /><br />
<h3>
this is shown if the search result is empty </h3>
<br />
<!-- ###TEMPLATE_SEARCH_EMPTY### begin -->
<div class="news-search-emptyMsg">###SEARCH_EMPTY_MSG###</div>
<!-- ###TEMPLATE_SEARCH_EMPTY### end -->
<br /><br />
<br />
<hr /><br />
<h3>TEMPLATE_HEADER_LIST</h3>
<em>shows a list of news titles</em><br />
<br />
<!-- ###TEMPLATE_HEADER_LIST### begin -->
<!-- ###CONTENT### begin
This is the part of the template substituted with the list of news:
-->
<!-- ###NEWS### begin
Template for a single item
-->
<div class="news-header-list-container">
<div class="news-header-list-title"> <!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></div>
<div class="news-header-list-time"> ###NEWS_TIME###</div>
<div class="news-header-list-categories">###TEXT_CAT_LATEST### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE###</div>
</div>
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
###BROWSE_LINKS###
<!-- ###TEMPLATE_HEADER_LIST### end -->
<br /><br />
<br />
<hr /><br />
<h3>TEMPLATE_CAT_RELATED</h3>
<em>shows a list of related news with the same category</em><br />
<br />
<!-- ###TEMPLATE_CAT_RELATED### begin -->
<!-- ###CONTENT### begin
This is the part of the template substituted with the list of news:
-->
<!-- ###NEWS### begin
Template for a single item
-->
###GW3B###<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--> ###NEWS_TIME### ###GW3E###
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
<!-- ###TEMPLATE_CAT_RELATED### end -->
<br />
<br />
<br />
</body>
</html>
tipafriend template:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Tip-a-Friend example template</title>
</head>
<body>
<br />
<br />
<br />
<h1>Tip-a-Friend</h1>
<h2>EXAMPLE</h2>
<br />
<br />
<br />
<pre>
<strong>Global markers, as set up in TypoScript:</strong>
These are substituted throughout the whole template.
<em>Markers:</em>
GW1B / GW1E
GW2B / GW2E
GW3B / GW3E
GC1
GC2
GC3
GC4
</pre>
<br /><br /><br /><br /><hr /><br /><br /><br />
<h3>TEMPLATE_TIPFORM</h3>
<em>This is the template for the form where the user enters the email addresse of the recipient.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_TIPFORM### begin
This is the template for the form where the user enters the email addresse of the recipient.
-->
<form action="###FORM_URL###" method="post">
<p>
Sie möchten diese Seite weiterempfehlen? <br />
Füllen Sie dazu einfach das untenstehende Formular aus, und der Emfänger erhält umgehend eine Email mit dem Link zu der von Ihnen ausgesuchten Seite.
(<a href="###URL###" title="">Link</a>)<br /><br /></p>
<!--###ERROR_MSG### this subpart is removed if the form has no errors! -->
<span style="color:#ff0000;">Bitte füllen Sie die Pflichtfelder aus.</span><br /><br />
<!--###ERROR_MSG###-->
<p>Ihr Name: * <input type="text" name="TIPFORM[name]" value="###YOUR_NAME###" class="unhidden" /></p>
<p>Ihre Email: *<input type="text" name="TIPFORM[email]" value="###YOUR_EMAIL###" class="unhidden" /></p>
<p>Empfänger EMail: *<br />(Mehrere Empfänger durch Komma trennen)<input type="text" name="TIPFORM[recipient]" value="###RECIPIENT###" class="unhidden" /></p>
<p>Ihre Nachricht: <textarea name="TIPFORM[message]" rows="1" cols="1">###MESSAGE###</p>
<p>(Pflichtfelder sind mit einem Stern * markiert.)</p>
<p>
<input type="submit" name="submit" value="Senden" class="button" />
<input type="hidden" name="tipUrl" value="###URL_SPECIALCHARS###" />
<input type="hidden" name="sendTip" value="1" />
</p>
</form>
<!-- ###TEMPLATE_TIPFORM### end -->
<br /><br /><br /><br /><hr /><br /><br /><br />
<h3>TEMPLATE_TIPFORM_SENT</h3>
<em>This is the template for the 'is-sent' display.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_TIPFORM_SENT### begin
This is the template for the 'is-sent' display.
-->
<script type="text/javascript"><!--function autoschliessen() { setTimeout("self.close();",10000); }--></script>
Ihre Nachricht wurde gesendet an: ###RECIPIENT###<br />
Sie können das Fenster jetzt schließen.
<!-- ###TEMPLATE_TIPFORM_SENT### end -->
<br /><br /><br /><br /><hr /><br /><br /><br />
<h3>TEMPLATE_TIPLINK</h3>
<em>This is the template for the link to the tip-page</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_TIPLINK### begin
This is the template for the form where the user enters the email addresse of the recipient.
-->
<!--###LINK###--><img src="fileadmin/images/icon_mail.gif" alt="" /><!--###LINK###-->
<!-- ###TEMPLATE_TIPLINK### end -->
<br /><br /><br /><br /><hr /><br /><br /><br />
<h3>TEMPLATE_EMAIL</h3>
<em>
Template for the plain link notification email.
First line is used as subject for the mail.<br />
</em><br />
<br />
<br />
<pre>
<!-- ###TEMPLATE_EMAIL### begin
Template for the plain link notification email.
First line is used as subject for the mail.
-->
Tip: Check this news
###YOUR_NAME### (###YOUR_EMAIL###) empfiehlt Ihnen diese Seite:
###URL###
Ihre Nachricht:
###MESSAGE###
Gruß
###YOUR_NAME###
<!-- ###TEMPLATE_EMAIL### end -->
</pre>
</body>
</html>
meine .htaccess datei sieht folgendermaßen aus:
##################################################
#für statische html/pdf-dokumente im root-verzeichnis#
##################################################
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[^/]*.(html|pdf)$ index.php
RewriteBase /
##################################################
#umleitung für subdomain *.beruf.molfi.de#
##################################################
RewriteCond %{HTTP_HOST} beruf.molfi.de$ [NC]
RewriteRule ^$ /index.php?id=4
extension-template der tipafriend seite (die seite ist im pagetree als popup deklariert):
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/templates/molfi/css/template_tip_css.css
page.shortcutIcon = fileadmin/images/favicon.ico
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/templates/molfi/template_tip.html
workOnSubpart = document
subparts {
#content-bereich -- css styled content installieren --
content < styles.content.get
}
}
tja, mehr fällt mir zur zeit nicht ein.
mir persönlich haben gepostete code-zeilen mit etwas erklärung immer am meisten weitergeholfen.
also hab ichs hier genauso gehandhabt. hoffe nur, die erklärungen reichen aus.
ansonsten hab ich in diesem forum sehr oft eine lösung gefunden, mitunter waren die ersten treffer einer suche nicht die besten. anders als bei google, lohnt es sich alle durchzublättern oder die suchanfrage anders zu formulieren.
und auch immer sehr hilfreich waren die anleitungen der extensions. entweder offline oder online auf typo3.org. ebenso gibt es hier auch gute lösungsansätze in den mailinglisten oder im tracker der extension.
auch google bringt ab und zu gute ergebnisse zu tage, gerade wenn private user auf ihrer seite tips und tricks zu typo3 veröffentlichen.
ein besuch auf den im profil der forum user angegebenen homepages bringt auch ab und zu was. und wenn es nur dazu dient, mal frischen wind und neue ideen zu sammeln.
wenn mir noch etwas einfällt, werde ich den beitrag editieren.
rechtschreibfehler b