[FLOW3-general] cannot get objects from repository
Bastian Waidelich
bastian at typo3.org
Wed Dec 5 16:45:56 CET 2012
Thomas Mammitzsch wrote:
> But i have a question in relation to my intention (auto completion). For
> this use case i want f.e. get all distinct city names which match the
> search term in the table.
> Getting all objects which match is a bit expensive and not handy i think.
> Is there a way to do a native query for that purpose?
Depends on what you actually need, you could always use DQL to fetch raw
results directly.
Fluid widgets could be interesting for you as well. Did you have a look
at the provided Autocomplete widget (see [1])? It serves as a base, but
works quite nicely for simple scenarios. Also see [2] on how to write
your own Ajax widgets.
Best
[1]
http://git.typo3.org/FLOW3/Packages/TYPO3.Fluid.git?a=blob;f=Classes/TYPO3/Fluid/ViewHelpers/Widget/AutocompleteViewHelper.php;h=ef889912e2660a63852304363c0150e3b9e38fb9;hb=HEAD
[2]
http://flow.typo3.org/documentation/guide/partiii/templating.html#widgets
--
Bastian Waidelich
--
Core Developer Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the FLOW3-general
mailing list