× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

If Is Abfrage Contains String

More
8 years 4 months ago #3701 by nira1000
If Is Abfrage Contains String was created by nira1000
Guten Tag

Ist es Möglich bei der IF IS Funktion eine Contains-Strings Abfrage zu erstellen? Z.B. Enthält das zu untersuchende Feld den Inhalt "Auto, Bus". Ich möchte jetzt dass, die IF IS Abfrage bei {joodb ifis|kategorie|Atuo|eq} und bei {joodb ifis|kategorie|Bus|eq} jeweils funktioniert.

Please Log in to join the conversation.

More
8 years 4 months ago #3702 by Dirk
Replied by Dirk on topic If Is Abfrage Contains String
Es erscheint mir nicht sinnvoll solche komplexen Aufgaben der Steuerungsprache von JooDB zu übertragen.

Es gibt bessere Wege das zu erreichen.
1:) Die Pro-Version bietet die Möglichkeit mit plugins eigene Befehle zu schaffen.
2:) Wenn man nur Einträge mit Bus und Auto anzeigen will kann man im Menüpunkt einen SQL WHERE Ausdruck verwenden
`titel` LIKE '%auto%' OR `titel` LIKE '%bus%'
3:) Man könnte einen MySQL View erstellen der das Ergebnis einer unterabfrage als Wahrheitswert erstellt und den View dann als JooDB Tabelle verwenden.

ENGL
It does not make sense to transfer such complex tasks to the controllangauge of JooDB.

There are better ways to achieve this .
1 :) The Pro version offers the possibility to create your own commands with plugins .
2 :) If you want to display only entries with bus and car can be a SQL WHERE expression using the menu item of yout catalog
`titel` LIKE '%auto%' OR `titel` LIKE '%bus%'
3 :) You could create a MySQL View creates the result of a subquery as a truth value , and then use the View as JooDB table .

Please Log in to join the conversation.

Moderators: Dirkjoest