Please Log in or Create an account to join the conversation.
Only way to do that is use 2 separate fields. 1 for continent and 1 for countries on that continent. You'd update the countries field using CB Core Fields Ajax and its Update On functionality.I have made the specific field searchable in the list view. Would it be possible to make the setup in a way that we can select the continent and then have all countries within filtered in the search?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Your country field should include in its query a check against the continent field. Example query as follows. Use the Update On functionality provided by CB Core Fields Ajax as the Update On in CB Query Field is deprecated and will be removed in a later release.Field 2 - countries: I am trying to use the Query dropdown multiselect field type. In here I select it to "update on functionalty" from Field 1. I am Still using Parameter Query and make select from db columns.
How do I match the 2 fields and set this up correct to make it function?
Use ORDER BY clause in your query to determine how to order them. See the below if you're not familiar with SQL SELECT syntax.I have another issue as well. I noticed that there was a mess in my "country" order when published in cb from the database. The order looks ok in the database. After a lot of list adjustments I discoved that a total of 198 "countries" within one continent is ok but adding more "countries" to the same continent breaks the order. When adding further countries under the same continent they are now published in the start of the list under the specfic continent. It looks fine in the db and are structured/sorted according to a unique id.
Is the max 198? Can you help me here?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can, but your database query needs to handle that. The below should work for example by converting the |*| delimitered multi-select to something SQL can understand.1. Is it correct that I cannot multiselect on the field I check against for the Update On functionality? It only updates on single select...
Install CB Core Fields Ajax and use its Update On functionality. It's a much more compatible and advanced update on usage than what's included with CB Query Field, which was the first attempt at implementing something like this and will eventually be completely removed as it's replaced by the functionality in CB Core Fields Ajax.2. Update On functionality: I have used field type - Query Drop Down (Multi-select). In this I write the query under the Parameters tab / Query Tab. I also use the update on functionality on the same tab. This works well! Not sure if you refer to the CB Query Field on the Integrations tab as the one I cannot use?
It's just an example. I've no idea what your database structure is and you'll need to adjust it as necessary. #__ will be replaced by your Joomla table prefix. If your countries table is prefixed like your other tables then remove #__ as needed.3. I copied your query example from below, thanks. Strangly when I used the: FROM `#__countries` did not work (table doesn´t exist), had to write FROM `countries` to make it work?
Please Log in or Create an account to join the conversation.