[Typo3] Another Newbie Question

George Hunka geh at panix.com
Fri Jan 28 07:22:47 CET 2005


Is it necessary to remove the earlier ###SEARCH### marker? And if so, 
must I change the SEARCH parameter to SEARCHTARGET in the following TS code?

page.10.marks.SEARCH < tt_content.search.30
  page.10.marks.SEARCH.dataArray >
  page.10.marks.SEARCH.dataArray{
  10.label >
  10.type = sword=input
  10.size = 10
  20.label >
  20.type = scols=hidden
  20.value =
  
tt_content.header-bodytext-imagecaption:pages.title-subtitle-keywords-description:tt_content.header
  30.type = stype=hidden
  30.value = L0
  40.type = submit=submit
  40.value = Submit
}

# SET A PAGE id WHERE THE SEARCH OPUTPUT IS SHOWN (must have a content 
element search on it!)
page.10.marks.SEARCH.redirect =79

page.10.marks.SEARCH.image = IMAGE
page.10.marks.SEARCH.image.file = fileadmin/main/graphics/go_button.gif
# SET AN IMAGE FOR THE SUBMIT BUTTON

Best,
George

Ingo Renner wrote:

>Am Thu, 27 Jan 2005 21:03:04 -0500 schrieb George Hunka:
>
>Hi George,
>
>  
>
>>search capacity working, but want to change the layout of this "search" 
>>function to look like this:
>>
>>Search: [SEARCHBOX] [SUBMIT BUTTON IMAGE]
>>    
>>
>
>Just add this to your html template:
>
>		<form ###SEARCHTARGET### method="post" name="custom_indexedsearch">
>		  <input type="text" name="tx_indexedsearch[sword]" value=""
>class="searchinput" />&nbsp;<input type="image"
>src="fileadmin/campus-dieburg/siteimages/icon_lupe.gif" alt="suchen" />
>		  <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" />
>		</form>
>
>and in your ts template define a marker:
>
>marks.SEARCHTARGET = TEXT
>marks.SEARCHTARGET.value = action="index.php?id=59"
>
>change 59 to the page id where your search plugin is...
>
>HTH
>Ingo
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>  
>

-- 

George Hunka
geh at panix.com
http://www.ghunka.com





More information about the TYPO3-english mailing list