[TYPO3-core] Flexform search

Bernhard Kraft kraftb at kraftb.at
Mon Jan 2 15:18:18 CET 2006


Hello !

This is a CVS patch request.

Type:
Feature

Branches:
Head

Description:
Currently it is not possible to search for a input/text value inside a Flexform
using the search box found on every List/Page module page.

Solution:
Simply add type => "flex" fields to the fields which get searched. This will result
that you will also find records where the value you searched for was not found in
an input field but as a field-name.
So if you have for example:

<field_price>
  <TCEforms>
...

and you search for "price" you will also get those records which have <field_price> as
an field.

But of course all "real" occurences of "price" (where the user has typed it in a flexform
input/text field) will also appear as search result.

This is not an optimal solution but currently it is not possible to search only through the
"non-tag" content of XML using simple mysql queries (pherhaps a nice regex would do it :)


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: small_patch_flexsearch.diff
Type: text/x-patch
Size: 655 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060102/74967488/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060102/74967488/attachment.pgp 


More information about the TYPO3-team-core mailing list