komplett sieht bei mir alles so aus ;-)
Installierte Extensions:
- Indexed Search Engine
- Searchbox for Indexed Search Engine
Backend
in der Root 25 verschiedene Länderpages mit Unterverzeichnissen sowie verschiedenen Plugins erstellt ich nehme zum erklären mal die deutsche
raus.
In diese Seite habe ich nun eine Searchseite mit dem Plugin "Indexsuche" erstellt welche die PID=711 erhält
als Include static:
habe ich plugin.alt.print(98-) sowie content (default) eingebunden
in Include static:
CSS Styled Content (css_styled_content)
In Include basis template:
habe ich folgendes Main-Template mit folgenden weiteren Templates stehen
Main-Template
Constants:
templateRoot=fileadmin/PharmaCRM/templates
linksFile=fileadmin/PharmaCRM/liens.js
logFile = pharmacrm.log
plugin.tt_news.wrap2 = <div id="news-2">|</div>
plugin.tt_news.wrap1 = <div id="news">|</div>
plugin.tt_news.wrap3 = <font color="white"><strong> | </strong></font>
plugin.tt_news.file.templateFile = fileadmin/PharmaCRM/templates/tt_news/news_template.html
plugin.tt_news.color1 = #EAEAEA
plugin.tt_news.color2 = #EAEAEA
plugin.tt_news.color3 = #0480C6
plugin.tt_news.color4 = #EAEAEA
plugin.tt_news.limit = 7
plugin.tt_news.latestLimit = 3
content.defaultHeaderType = 2
# Konfiguration des Plugins Meta Tags
plugin.meta.description =
plugin.meta.keywords
plugin.meta.robots = follow
plugin.meta.language = de
plugin.meta.copyright =
plugin.meta.author =
plugin.meta.revisit = 1
# Setzen der Variable für den Standard-Alttext
BILD_ALTTEXT = + öffnen
Setup:
// --- CREATE THE MAIN PAGE OBJECT -------------------------------------------
page = PAGE
page {
typeNum = 0
headerData.10 < temp.headTemplate
headerData.20 < temp.headTemplateCA
headerData.30 = TEXT
headerData.30.value=<script language="javascript" src="{$linksFile}"></script>
10 < temp.mainTemplate
}
// --- CREATE THE PRINT PAGE OBJECT -------------------------------------------
temp.printTemplate = TEMPLATE
temp.printTemplate {
template =< plugin.tx_automaketemplate_pi1
template.content = FILE
template.content.file = {$templateRoot}/print/print.html
template.relPathPrefix = {$templateRoot}/print/
workOnSubpart = DOCUMENT_BODY
subparts.content < temp.contentAreaTemplate
}
print_page = PAGE
print_page {
typeNum = 98
headerData.10 < temp.headTemplate
headerData.20 < temp.headTemplateCA
10 < temp.printTemplate
}
# Ausblenden der Typ-Nummer in der HTML-Adresse
config.simulateStaticDocuments_noTypeIfNoTitle = 1
// SETUP DATE AND TIME FOR THE NEWS
plugin.tt_news{
displayLatest {
date_stdWrap.strftime = %m-%d-%Y
time_stdWrap.strftime = %H:%M
}
displayList {
date_stdWrap.strftime = %A %d, %B %Y
time_stdWrap.strftime = %H:%M
}
displaySingle {
date_stdWrap.strftime = %A %d, %B %Y
time_stdWrap.strftime = %H:%M
}
}
// d?sactive le remplacement des caract?res sp?ciaux dans les titres
// lib.stdheader.10.setCurrent.htmlSpecialChars = 0
config.stat_apache = 1
config.stat_apache_logfile = {$logFile}
tt_content.image.20.spaceBelowAbove = 0
#################################################
# Suchbox und Weiterleitung auf Indexed Search
#################################################
plugin.tx_macinasearchbox_pi1.pidSearchpage = 711
plugin.tx_macinasearchbox_pi1.templateFile = {$templateRoot}/searchbox/suchbox.htm
temp.suche >
temp.suche < plugin.tx_macinasearchbox_pi1
# Im Plugin Erweiterte Suche wird die Indexierung von Dateien ermöglicht
page.config.index_enable = 1
page.config.index_externals = 1
# Zuweisung des auf allen Seiten zu sehenden Suchfeldes
marks.SUCHE >
marks.SUCHE < plugin.tx_macinasearchbox_pi1
# Konfiguration des Plugin Erweiterte Suche
plugin.tx_indexedsearch.show.rules=0
# Ausschalten der CSS-Formatierung im Seitenkopf der HTML-Datei
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE =
# Ausschalten der Auswahlmöglichkeiten des Plugins Erweiterte Suche
# Suchen in: Alle Medien/Interne Seite
plugin.tx_indexedsearch.blind.media=1
# Suche in: Standard/Alle Sprachen
plugin.tx_indexedsearch.blind.lang=1
# Suchen in: Ganze Webseite
plugin.tx_indexedsearch.blind.sections=1
# Sortieren nach: Trefferquote/Vorkommen
plugin.tx_indexedsearch.blind.order=1
# Sortieren nach: Höchste Zuerst
plugin.tx_indexedsearch.blind.desc=1
# Ansicht: Sektionshierarchie/Flache Liste
plugin.tx_indexedsearch.blind.group=1
auch hierdrin habe ich zwei weitere Include basis template:
eine fürs Menü und eine fürs HTML-Template
HTML-Template
Constant:
$countryInfo >
Setup:
// --- SET UP TEMPLATE SELECTOR -----------------------------------------------
plugin.tx_rlmptmplselector_pi1 {
// Define the paths leading to our HTML template files
templatePathMain = {$templateRoot}/main/
templatePathSub = {$templateRoot}/sub/
// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = template_1.html
defaultTemplateFileNameSub = subtemplate_1.html
// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
inheritSubTemplates = 1
}
// --- CONFIGURE THE AUTOMAKETEMPLATE EXTENSION --------------------------
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title, style
TD.all = 1
DIV.all = 1
}
relPathPrefix = {$templateRoot}/main/
}
// --- CREATE TS TEMPLATES FOR MAIN AND CONTENT AREA ------------------
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}
temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = sub
template.relPathPrefix = {$templateRoot}/sub/
workOnSubpart = content
subparts {
page-title = TEXT
page-title.field = title
page-subtitle = TEXT
page-subtitle.field = subtitle
content-normal < styles.content.get
content-left < styles.content.getLeft
content-right < styles.content.getRight
}
}
temp.headTemplateCA = TEMPLATE
temp.headTemplateCA {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template < temp.contentAreaTemplate.template
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = main
workOnSubpart = DOCUMENT_BODY
# Substitute the ###country-info### subpart with country information
subparts.country-info < temp.path
subparts.country-info = TEXT
subparts.country-info.value = {$countryInfo}
# Substitute the ###menu-gauche### subpart with dynamic menu:
subparts.menu-gauche < temp.menu-gauche
# Substitute the ###path### subpart with dynamic path menu:
subparts.path < temp.path
# Substitue the ###print### subpart
subparts.print = TEXT
subparts.print {
value = <img src="{$templateRoot}/main/images/print.gif" alt="Print" border="0">
typolink {
target = _blank
// ouvre une fen?tre de 700 par 500
parameter = index.php?{getenv:QUERY_STRING}&type=98 700x500
parameter.insertData = 1
}
}
subparts.content < temp.contentAreaTemplate
}
weiterhin besitzt jede Länderseite noch ein eigenes Template
Template-Title : Germany Template
Constant:
linksFile=fileadmin/PharmaCRM/liens_germany.js
logFile = pharmacrm_germany.log
# information of the country display in path
countryInfo=Pharma CRM Germany
# name of the home page display in path
HomeName=Home
Setup:
// Emplacement pour le stockage des news
plugin.tt_news.pid_list >
plugin.tt_news.pid_list = 416
// Page d'affichage des news
plugin.tt_news.singlePid = 424
das Searchtemplate welches ja weiter oben schon beschrieben ist liegt unter fileadmin/PHarmaCRM/templates/suchbox/suchbox.htm
ufffff
so jetzt liegt bis aufs Templatemenü so zimmlich alles offen.
Weist Du wo hier das Problem ist das die Suchbox nicht funktioniert ?
Also die Suchseite PID=711 selbst durchstöbert erfolgreich die DB nur die oben rechts liegende Suchbox "###SUCHE###" scheitert.