[TYPO3-english] tt_macina_searchbox on not "rootlevel" templates

R. Lejsza (GSD) rlejsza at gsd-software.com
Tue Dec 16 11:07:51 CET 2008


Hello guys!

I've got problem with tt_macina_searchbox extension. It is working correctly and searchching for everything fine, but...
I've got on my website many site templates, there is one main (rootlevel), and 7 sub templates, which are not "rootlevel" templates.
This searchbox is included on every template, but I dont know why it shows only when template has got marked "rootlevel". I can't do so, because it makes mess with menus :/

Do you know any solution for that?

Site soure looks so (rootlevel):
<!--

		BEGIN: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1"

	-->
	<div class="tx-macinasearchbox-pi1">
		
<form action="index.php?id=23&amp;L=0" method="post" name="searchform" id="searchform" style="margin:0px; padding:0px; ">
  <table height="14" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td align="left"><input name="tx_indexedsearch[sword]" type="text" style="height:18; width:130; font-size:11" /></td>
      <td><input name="tx_indexedsearch[submit_button]" type="submit" style="border:0" value="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" />
        <input type="hidden" name="tx_indexedsearch[lang]" value="0" />
      </td>
    </tr>
  </table>
</form>

	</div>
	
	<!-- END: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1" -->

And on non rootlevel:

<!--

		BEGIN: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1"

	-->
	<div class="tx-macinasearchbox-pi1">
		
	</div>
	
	<!-- END: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1" -->

	
Typo script looks the same for part with searchbox for all templates, and it is:

plugin.tx_macinasearchbox_pi1 {
  pidSearchpage = 23
}

[...]

  # Substitute the ###SEARCH### subpart with content:
  subparts.SEARCH < plugin.tx_macinasearchbox_pi1


More information about the TYPO3-english mailing list