[TYPO3-english] searchbox
Peter Klein
peter at umloud.dk
Wed Oct 8 15:41:15 CEST 2008
If you are using Indexed Search , you could do something like this:
In your TS setup you add this:
[globalString = GP:tx_indexedsearch|sword=*]
page.headerData.100 = HTML
page.headerData.100.value = <script type="text/javascript"
src="fileadmin/myscript.js"></script>
[GLOBAL]
Then you create a file"fileadmin/myscript.js" where you write an event
handler that enables the CSS display properties for the elements you
want shown.
If you are not using any JS frameworks, you can take a look at my PMK
Textarea Widget extension
http://typo3.org/extensions/repository/view/pmktextarea/current/ , and
see how to write a generic event handler. (That's the pmk_addEvent
function)
--
Peter Klein
On Wed, 8 Oct 2008 14:56:40 +0200, "Rupali Gupta"
<rupali.ffm at googlemail.com> wrote:
>how to check search parameter, i didn't get it. Can you please refine it
>more?
>
>2008/10/8 Peter Klein <peter at umloud.dk>
>
>> Hi Rupali.
>>
>> Write some Javascript that checks if the search parameter is available
>> in the POST var.
>> If it's set, you change your display: none; to display: "";
>>
>> --
>> Peter Klein
>>
>> On Wed, 8 Oct 2008 11:25:04 +0200, "Rupali Gupta"
>> <rupali.ffm at googlemail.com> wrote:
>>
>> >Hello List,
>> >i have some toggle containers (their visibility is toggled onclick:
>> >display:block/none;) on my web-site. works fyn too.
>> >Now i also hav macina_searchbox and if the search result is inside these
>> >containers (whose visibility is none on pageload), the user is not able to
>> >reach the search result correctly, instead he reaches to the closed
>> >container only.
>> >
>> >how can i make my boxes open if they r redirected from search result ?
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
More information about the TYPO3-english
mailing list