[TYPO3-dev] typoscript objects and static cache
Asbjørn Morell
atmorell at gmail.com
Mon Jul 16 10:55:20 CEST 2007
Hello,
Thank you both for your answers. Well the search box works with cache if I
change it to lib.searchbox = COA. However the dropdownmenu does not work
when I change it to USER. Page is cached - but form is not generated :/ This
is the extension I am using for the dropdown menu:
http://typo3.org/documentation/document-library/extension-manuals/dropdown_list_menu/1.4.0/view/1/2/
Best regards.
Asbjørn Morell.
"Michiel Roos [netcreators]" <michiel at netcreators.com> skrev i meddelelsen
news:mailman.1.1184320702.12836.typo3-dev at lists.netfielders.de...
> Hi Asbjørn,
>
> It should work if you:
> - have a search results landing page for your search box.
> - have a landing page for your form results.
>
> All other pages in the site not containing forms should be statically
> cachable.
>
> Does the dropdownlist actually need to be dynamic? Does it work when you
> change it to USER? (just put lib.agents = USER)
>
> What about the search box? Does it need to be a COA_INT? If it has it's
> own landing page, it does not need to. In that case, make it a COA object:
>
> lib.searchbox = COA
>
> Hope this helps.
>
> In the last version of nc_staticfilecache you can even cache USER_INT
> plugins (well some at least, in special cases). Say you have a randomly
> changing background (through a changing css snippet in the head) and still
> want the background to change and the pages to be cached statically. This
> would mean that you will need to make the css changer object a USER
> object. And then you need to actively clear the static file cache
> periodically. The cleaner script that comes with nc_staticfilecache will
> actively clear the cache for you as often as you like (taking into account
> the pages exipry time).
>
> Kind regards,
>
>
> Michiel Roos
>
>
>> I have a pretty basic TYPO3 website. There is a search from and
>> dropdownmenu on every page. These two forms are typoscripts objects that
>> is initialized from a Templavoila object patch. However I can't get any
>> static cache working. If I comment out the two objects - cache is working
>> again. I tried the extension nc_staticfilecache and bestfilecache. Any
>> ideas about how I can get these two objects working with static cache?
>>
>> # Agents
>> lib.agents = USER_INT
>> lib.agents < plugin.tx_dropdownlistmenu_pi1
>> lib.agents {
>>
>> # You can define the starting point directly in TS
>> pid_list.override = 29
>>
>> # Level of recursion.
>> recursionLevel = 3
>>
>> # Leading separator char
>> # seperatorChar = +
>> general_stdWrap.wrap =
>>
>> firstLabel = Choose region
>> }
>>
>>
>> # Search
>> lib.searchbox = COA_INT
>> lib.searchbox {
>> stdWrap.prefixComment = 2 | lib.searchbox
>> 10 = TEXT
>> 10.typolink.parameter = {$plugin.tx_indexedsearch.searchUID}
>> 10.typolink.returnLast = url
>> 10.wrap = <form action="|" method="post" id="indexedsearch">
>> 20 = COA
>> 20 {
>> 10 = TEXT
>> 10.data = GPvar : tx_indexedsearch |sword
>> 10.wrap = <input name="tx_indexedsearch[sword]" value="|"
>> class="search-input" type="text" />
>> 20 = COA
>> 20 {
>> wrap =
>> 10 = TEXT
>> 10.value = <input type="hidden"
>> name="tx_indexedsearch[sections]" value="0" />
>> 20 = TEXT
>> 20.value = <input name="tx_indexedsearch[submit_button]"
>> value="Search" type="hidden" />
>>
>> 30 = TEXT
>> 30.value = <input name="search" value="Submit"
>> class="search-submit" type="submit" />
>> }
>> }
>> wrap = | </form>
>> }
>>
>>
>> Best regards.
>> Asbjørn Morell.
>>
>>
>>
>
>
> --
> Netcreators BV :: creation and innovation
> www.netcreators.com
>
> Interesse in werken bij Netcreators?
> http://www.netcreators.com/bedrijf/vacatures/
More information about the TYPO3-dev
mailing list