[SOLVED] Query tag?

4 months 1 week ago - 4 months 1 week ago #323291 by ericmuc
[SOLVED] Query tag? was created by ericmuc

I have a textfield with a query running, and now I want to create a query tag field with the same query. I copied the query into this new field and add under options id and value regarding the query. But it doesn't work.

SELECT `id`,`[cb:if language_code="de"]description_DE[cb:else]description_EN[/cb:else][/cb:if]` AS 'label'
FROM `xxxxxxx
`[cb:if language_code="de"]description_DE[cb:else]description_EN[/cb:else][/cb:if]` LIKE '%[value]%'

Under Options: id and value

What I have to do in a query tag field, to have that working? Do I oversee something?

Thanks, best regards

Please Log in to join the conversation.

4 months 1 week ago #323293 by krileon
Replied by krileon on topic Query tag?
The WHERE statement doesn't make any sense for a Query Tag field type and appears to be leftover from Query Validation. Remove the WHERE statement and it should work fine.

Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: ericmuc

Please Log in to join the conversation.

4 months 1 week ago #323297 by ericmuc
Replied by ericmuc on topic Query tag?
Thanks, yes, now it works!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.410 seconds

Facebook Twitter LinkedIn