zikula-modules / Clip

Flexible Document Creator
35 stars 8 forks source link

filter.tpl - Searching within strings does not work #145

Open DirkThiele opened 11 years ago

DirkThiele commented 11 years ago

Hello there!

I put the following code into the "filter.tpl"

<span class="z-nowrap core_title_wrapper">
       {clip_filter_plugin p='Label' field='qm_doc_title' id='qm_doc_title_label' for='qm_doc_title' __text='Titel'}
       {clip_filter_plugin p='OpString' field='qm_doc_title' id='qm_doc_title_op' enabled='search'}
       {clip_filter_plugin p='String' id='qm_doc_title'}
   </span>

but it seems that something is not working properly because the request ends with an error message as written below.

Fatal error: Maximum execution time of 30 seconds exceeded in /opt/lampp/htdocs/modules/Clip/lib/Clip/Filter/Form.php on line 84

What I have noticed so far is, that the URL is looking weird. Normally it should look like this

...filter1=qm_doc_title:search:test

but the colons are being replaced with "%3A"

...filter1=qm_doc_title%3Asearch%3Atest

and even if I replace the "%3A" with colons manually I'm getting the same error message.

Is there an easy way out of this problem?

Many thanks in advanvce for your help!

Best regards, Dirk

Zikula 1.3.5 | Clip 0.9.4

FRWo commented 11 years ago

Same problems if I have more than one page after filtering. Second page is linked with colons, but will only work with "%3A"

DirkThiele commented 11 years ago

Update!

When I do it like this, everything seems to work fine.

{clip_filter_plugin p='Label' field='qm_doc_title' id='qm_doc_title_label' for='qm_doc_title' __text='Titel'}
{clip_filter_plugin p='String' id='qmh_doc_title'}

So the only thing I have changed is the 'OpString' plugin which I have removed.

Not sure if I made a mistake before.

FRWo commented 11 years ago

When there is no OPString, you don't have the option to choose how the searchstring is handled (f.e.: eq - like ...) And the link for the second page is still not working because of "%3A"