[TYPO3] How to get rid of wrapping DIV when integrating an extension
Tadej Bregar
Tadej.Bregar at guest.arnes.si
Wed Dec 28 01:19:05 CET 2005
Hi,
for the last two hours I have been trying to get rid of wrapping DIV
container from the 'macina_searchbox' extension.
When I insert a Serachbox into a page, the source looks like this:
<!-- BEGIN: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1" -->
<div class="tx-macinasearchbox-pi1">
<form style="text-align:center;" action="index.php?id=89&L=0&L=0" method="post" name="searchform" id="searchform">
<input name="tx_indexedsearch[sword]" />
<input name="tx_indexedsearch[submit_button]" type="submit" value="search" />
<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" />
</form>
</div>
<!-- END: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1" -->
But I want to output just:
<!-- BEGIN: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1" -->
<form style="text-align:center;" action="index.php?id=89&L=0&L=0" method="post" name="searchform" id="searchform">
<input name="tx_indexedsearch[sword]" />
<input name="tx_indexedsearch[submit_button]" type="submit" value="search" />
<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" />
</form>
<!-- END: Content of extension "macina_searchbox", plugin "tx_macinasearchbox_pi1" -->
So I don't want <div class="tx-macinasearchbox-pi1"> in HTML output.
Reason?
1. I want clean html output without unnecessary code
2. The Graphic (template) designer supplies me with xhtml compliant template where all the styling is contained in one external CSS file. She doesn't know anything about class="tx-macinasearchbox-pi1", for instance.
What should I do?
Should I hack the CSS styles and html template? Is there a better way to do this?
Thanks for your help.
Regards,
Tadej Bregar
More information about the TYPO3-english
mailing list