[Typo3-UG UK] I need some assistance with the search of typo3
Nicolas Diogo
nicolasdiogo at yahoo.co.uk
Thu Apr 22 16:27:46 CEST 2004
Hi Adrian,
I have tried to follow your advice; however I still no not have the input
appearing on my pages.
The following is what I have on the setup field.
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/template/brainpowered/general/css/stylesheet.css
page.10 = TEMPLATE
page.10{
template = FILE
template.file =
fileadmin/template/brainpowered/general/test2.htm
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < styles.content.get
subparts.RIGHTNAV< styles.content.getRight
subparts.LOWERBORDER < styles.content.getBorder
subparts.MENU = HMENU
subparts.MENU.1 = TMENU
subparts.MENU.1.NO {
allWrap = <div>|</div>
}
#search form
marks {
SEARCHSTRING = FORM
SEARCHSTRING.redirect = 5
SEARCHSTRING.dataArray {
10.label = SEARCH
10.type = sword=input, 15
10.value =
20.type = scols=hidden
20.value = pages.title:tt_content.bodytext
30.type = stype=hidden
30.value = LO
40.type = submit=submit
40.value = GO
}
}
Also I could not find marks on the TSref to find the fault.
Many thanks,
Nicolas
_____
From: typo3-uk-bounces at lists.netfielders.de
[mailto:typo3-uk-bounces at lists.netfielders.de] On Behalf Of Adrian Yeeles
Sent: 22 April 2004 13:27
To: TYPO3 Usergroup UK
Subject: Re: [Typo3-UG UK] I need some assistance with the search of typo3
Nicolas
On my template, I would like to be able to place the search input text on a
particular area.
The area on my template is defined by the markup "###SEARCHSTRING###".
I would like to have this in all pages and to have results presented on
another page that opens within the same window (_self), and to be able to
search in headers, keywords, and content.
OK go to the top level page you want the search form to appear on, add a
typo3 template and do something like
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = your_template_file_with_###SEARCHSTRING###_on_it.tmpl
workOnSubpart = DOCUMENT_BODY
marks {
SEARCHSTRING = FORM
SEARCHSTRING.redirect = uid_of_page_to_show_results
SEARCHSTRING.dataArray {
10.label = SEARCH
10.type = sword=input, 15
10.value =
20.type = scols=hidden
20.value = pages.title:tt_content.bodytext
30.type = stype=hidden
30.value = LO
40.type = submit=submit
40.value = GO
}
}
This assumes you have:
A uploaded the appropriate template file with ###SEARCHSTRING### in it to
somewhere in /fileadmin (not forgetting to put <!-- ###DOCUMENT_BODY###
begin --> and <!-- ###DOCUMENT_BODY### end --> immediately after the <body>
and immediately before the </body> respectively of your html template).
B Made the page "uid_of_page_to_show_results" with a content element of the
type "Search".
Every page that uses the same set-up (html template, typo3 template) and can
inherit from the first page with the search form on it will also have the
search form on it.
Of course you could use TemplaVoila instead to map to a location in your
html file but perhaps that can wait till you've gained some more experience
with Typo3.
I am new to typo3 and I am still struggling to understand the TSref.
Expect a long struggle.... but well worth it! Good luck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-uk/attachments/20040422/dc2f6bc4/attachment.html
More information about the TYPO3-uk
mailing list