Antwort
 
LinkBack (1) Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 22.03.05, 12:52
Forum Newbie
 
Registriert seit: 22.03.05
Beiträge: 48
Searchbox

Hallo,

ich habe schon in mehreren Foren nach einer Lösung meines Problems gesucht aber nirgends eine gefunden.

Kann mir vieleicht hier irgendjemand einen kleinen Tip geben ?

mein Problem ist es in das bestehende Template keine Searchbox für 25 verschiedenen Länderseiten zu implementieren.

Was habe ich bis jetzt ?

Installierte Extensions:

- Indexed Search Engine
- Searchbox for Indexed Search Engine

in das Template selbst habe ich einen Marker ###SUCHE### eingebunden, der eigentlich auf jeder Seite die Searchbox und nicht ###SUCHE### anzeigen sollte.

Das ist das Hauptproblem die Suchseite selbst funktioniert einwandfrei.

hier eine kleine Übersicht über mein Scriptverfahren

ich habe für alles 25 Seiten ein basis template erstellt in dem ich folgendes einfügte.

Constants:

Code:
templateRoot=fileadmin/templates
linksFile=fileadmin/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/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

# Setzen der Variable für den Standard-Alttext
BILD_ALTTEXT = + öffnen
Setup:

Code:
// --- 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:


Code:
$countryInfo >

Setup:

Code:
// --- 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:


Code:
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:

Code:
// 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

Bitte helft mir ich verzweifle bald ...

Danke Euch im voraus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 22.03.05, 16:49
Forum Stammgast
 
Registriert seit: 18.08.04
Beiträge: 468
daniel eine Nachricht über ICQ schicken

irgendwie ist deine struktur echt unnötig aufgebläht und nicht wirklich sinnvoll strukturiert.
was ich jetzt beim überfliegen gefunden habe ist:
marks.SUCHE

probier da mal

page.marks.SUCHE

wie gesagt, beim überfliegen...
ich benutze schon lange keine html-templates mehr, deshalb bin ich an der stelle ein wenig raus....
__________________
typoversion: 3.6.1/3.6.2/3.7.0, Server: atplus.de/profihost.com/all-inkl.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Trackbacks are An
Pingbacks are An
Refbacks are An

LinkBacks (?)
LinkBack to this Thread: http://www.typo3forum.net/forum/indexed-search/3200-searchbox.html
Erstellt von For Type Datum
Indexed Search [Archiv] - TYPO3forum.net This thread Refback 11.02.07 04:25

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Wie kann ich das Aussehen der Searchbox anpassen? thomas_vienna Indexed Search 0 20.04.07 10:52
Kontaktformular und Macina Searchbox Fehler marzl7777777 TYPO3 4.x Fragen und Probleme 0 14.03.07 09:36
Problem mit Macina Searchbox MATRIXX Indexed Search 3 17.01.07 09:09
Macina searchbox TS greift nicht? timinafrica Indexed Search 1 09.01.07 12:21
DIV Tags aus Macina Searchbox entfernen neo Alle anderen Extensions 0 15.11.06 18:41


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:00 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS