[Typo3] Indexed search and tt_products
Jogvan Olsen
jo at atlanticvideo.dk
Mon May 2 16:44:57 CEST 2005
Hi Franz
Sorry for not answer earlier, but I have been 'offline' a couple of weeks.
I can't get it to work. When I remarks these lines:
/**
* Main method. Call this from TypoScript by a USER cObject.
*/
function main_products($content,$conf) {
// global $TSFE;
// $TSFE->set_no_cache();
I get this error massage:
Fatal error: Call to a member function on a non-object in
C:\apache\htdocs\dawjo2\typo3conf\ext\tt_products\pi\class.tx_ttproducts.php
on line 206
When I only remarks "// $TSFE->set_no_cache();":
/**
* Main method. Call this from TypoScript by a USER cObject.
*/
function main_products($content,$conf) {
global $TSFE;
// $TSFE->set_no_cache();
Can I view the products in LISTVIEW, but SINGELVIEW doesn't work - nothing
happen when I click on a product for singleview.
What am I doing wrong?
Best regards
Jogvan Olsen
"Franz Holzinger" <franz at fholzinger.com> wrote in message
news:mailman.1.1113031845.6025.typo3-english at lists.netfielders.de...
> Hello Jogvan,
>
>> Can anybody tell me if it is possibly to use Indexed search to search the
>> tt_products tables?
>>
>> I know the manual say '... tt_products apparently disables the caching of
>> the page thereby disabling any indexing of the pages.' But is there a
>> workaround so I can use indexed search to search for products.
>> Or do I have to use two search boxes - one for products and another for
>> al the other content?
>>
> /**
> * Main method. Call this from TypoScript by a USER cObject.
> */
> function main_products($content,$conf) {
> global $TSFE;
> $TSFE->set_no_cache();
>
> You have to delete the line above from class.tx_ttproducts.php.
>
> Tell me if it works and I can make a TypoScript Setup Configuration for
> tt_products out of this.
>
> Maybe it would be better to move the claring of the cache to the code
> lines where the basket page is built or the order is processed.
>
> Franz
>
More information about the TYPO3-english
mailing list