I want to use CB Query Field to retrieve some rows from a hikashop table and use them as options for a select list. The query is:
SELECT `zone_name_english` FROM `#__hikashop_zone` WHERE `zone_type` LIKE 'tax' AND `zone_published` =1
By now, I only fill the setting 'Row' with the field name as a CB substitution:
[zone_name_english]
But output only returns the string '[zone_name_english]' as many times as the where matches, as if the field didn't exist (it does, I even tried the query directly and worked fine)
What I'm doing wrong?
I attach current field settings and output as reference. I'm using J3.1.1, CB1.9 and queryfield2.1.0.
Please review the info icons directly next to the parameters. You're not substituting in columns properly. As user substitutions and query substitutions are supported the column substitutions need to be prefixed with column_. Example as follows.
[column_zone_name_english]
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: zaratustra27