[Typo3] Problem with csc, templavoila, and simplesearch

Ben Chapman bjchapm at emory.edu
Fri May 6 19:02:37 CEST 2005


Everyone:

We're running Typo 3.7 on our production site 
(http://www.law.emory.edu). It works well, except for one nagging issue. 
There is a problem with the HTML generated around the search box that is 
a part of our TV template. The resulting HTML looks like this:

<div id="search_box"><form action="index.php?id=333&amp;no_cache=1" 
name="b66da142c689c649f9c309cc8ccfb8ae" enctype="multipart/form-data" 
method="post" onsubmit="return 
validateForm('b66da142c689c649f9c309cc8ccfb8ae','','','','')">
<input type="hidden" name="scols" 
value="tt_news.title-bodytext:pages.title-subtitle-keywords-description 
:tt_content.header-bodytext-imagecaption 
:tt_news.title-bodytext:tt_address.name-title-address-email-company-city-country" 
/>
<input type="hidden" name="stype" value="L0" />
<input type="hidden" name="locationData" value="288:_NO_TABLE:" />
<span class="csc-searchform">
<span="csc-form-labelcell"></span>
<span="csc-form-fieldcell"><input type="text" name="sword" size="20" 
value="" />
</span>&nbsp;
<span="csc-form-labelcell"></span>
<span="csc-form-fieldcell">
<input type="image" name="submit" 
src="fileadmin/emorylaw/images/search_arrow.png" width="17" height="17" 
  border="0" alt="SEARCH" alt="" title="" />
</span>&nbsp;</span></form></div>

The problem is the 'span="csc...' parts. It should be "span class='csc...'"

It appears as though something is deleting " class" from what should be 
'span class="csc...' As a result, pages don't validate, and we cannot 
control the appearance using styles. Here is the typoscript from the 
'setup' section of our root template:

lib.search_box = COA
lib.search_box.10 < tt_content.search.30
lib.search_box.10.dataArray >
lib.search_box.10.dataArray{
   10.type = sword=input
   10.size =  8
   20.type = scols=hidden
   20.size = 0
   20.value = 
tt_news.title-bodytext:pages.title-subtitle-keywords-description 
:tt_content.header-bodytext-imagecaption 
:tt_news.title-bodytext:tt_address.name-title-address-email-company-city-country 

   30.type = stype=hidden
   30.value = L0
   40.type = submit=submit
   40.value = Submit
}

'lib.search_box' called as a typoscript object in our templavoila templates.

Can anyone help me understand why it puts "span=" instead of "span class="?

Many thanks in advance,

Ben Chapman

-- 
Benjamin J. Chapman, Esq.
Assistant Dean for Information Technology
Emory University School of Law
ben.chapman at emory.edu
V: (404)727-6948 F: (404)727-2202





More information about the TYPO3-english mailing list