Checkbox Value?
-
mlilge
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
11 years 8 months ago #836
by mlilge
Hi,
What value do I have to use for a ticked checkbox, please?
I thought it would be a simple '1' but it doesn't work in my case:
cb_traktor04;1;Traktor 04;true
I'm using Joomla 2.5.9, CB 1.9 and AutoGroup 1.6.
Looking forward to your suggestions!
Manfred
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 8 months ago #837
by admin
Hi Manfred,
checkboxes fields return _UE_YES and _UE_NO as value. So, for an english language site:
cb_traktor04;Yes;Traktor 04;true
Please, advise.
Luigi
The following user(s) said Thank You: mlilge
Please Log in or Create an account to join the conversation.
-
mlilge
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
11 years 8 months ago #840
by mlilge
Thanks Luigi,
That's it!
Maybe you could add this hint to your documentation (if it isn't yet) to help other people that may have the same issue as checkboxes are different in that respect. It's maybe also worth to mention that the language of the backend is significant not the one of the frontend.
I love your plug-in now!
Manfred
Please Log in or Create an account to join the conversation.
-
mlilge
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
11 years 8 months ago #841
by mlilge
Just noticed that both languages, frontend and backend, are important if different. Otherwise the plug-in works only for either of both.
In my case the correct setting is
cb_traktor04;Yes,Ja;Traktor 04;true
Weird implementation for a checkbox. Think that the default setting can be 0 or 1 and is the same for the result.
Anyway it's working now
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 8 months ago - 11 years 8 months ago #845
by admin
Hi Manfred,
I just sent you a preview of 1.7 version that fixes the registration issue. This is not the final cause I want to change the way Auto Group manage checkboxes.
This behaviour was added in the 1.6 version, when we add support for multi-values fields. We started to use CB API to get field values, and this is the way it manages checkboxes.
But in our opinion this can cause issues on multi-language sites, you find a clever way to manage this, but what if you have 10 languages? We don't like, so we want to get back and consider 1 or 0 as checkbox values. The final 1.7 version will do this. So, remember that if you will install the final 1.7 you must change the rule again, to replace Yes,Ja with 1.
Kind regards,
Luigi
Last edit: 11 years 8 months ago by admin.
Please Log in or Create an account to join the conversation.
-
mlilge
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
11 years 7 months ago #846
by mlilge
Hi Luigi,
v1.7 does not work for me
Using '1' is not working at all. If I keep my previous 'True,Ja' combination only changes via the frontend (German language) updates the group assignment as well. Backend changes (English language) do not affect group settings at all.
I should fall back to v1.6...
Manfred
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds