× Here you can get community support related to Auto Group.

Multiple filed type and multiple groups

  • kalimu
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #575 by kalimu
Hi,
I have a profile field with three options (multiple check). My goal is to change groups according to choices. But it seems the rules work only with one filed value, and something like this doesn't work yet:

cb_profiletype;value1, value2;group1, group2;true

Could you confirm or is it my mistake?
Regards
Kamil

Please Log in or Create an account to join the conversation.

  • kalimu
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #576 by kalimu
Replied by kalimu on topic Multiple filed type and multiple groups
And quick update :)
It works only the format should be different:

cb_profiletype;value1|*|value2;group1, group2;true

Kamil.

BTW. Great plugin!

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #579 by admin
Replied by admin on topic Multiple filed type and multiple groups
Hi.
Just released an upgrade, pls download and install.

Anyway, it's strange it works because rule syntax allows to specify multiple groups separated by comma, but not multiple values:
fieldname;fieldvalue;groupname, ... ,groupname;unassing

But you give me a great idea and I will change the syntax again... :)

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #586 by admin
Replied by admin on topic Multiple filed type and multiple groups
Hi Kalim,
just released new Auto Group 1.5 with support for multiple values.

Now the rule syntax is:
fieldname;fieldvalue,fieldvalue, ... , fieldvalue;groupname, ... ,groupname;unassing

Don't leave blanks in the rule.

Just login, download new version from the download page, and install over. Then you can you the syntax you wish at the beginning of this thread.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #631 by johntennock
Replied by johntennock on topic Multiple filed type and multiple groups
This looks like a great plugin and should do exactly what I want.
In the CB Users profile I have added a multi-checkbox field with the name 'cb_groupselection' allowing the user, when registering or updating, to select one or more of Energy, Health,Transport check-boxes.

I have created Joomla user groups Energy, Health,Transport (with Registered as their parent)

The format in which they appear in phpMyAdmin is

Energy|*|Health|*|Transport

In Autogroup I have set up Field to Group mapping parameters as follows:

cb_groupselection;Health,Energy,Transport;Health,Energy,Transport;true


My expectation is that whatever combination I select in registration should automatically include the new record in the corresponding groups. However, even if I only check one check box on registration (e.g. energy) the new record is automatically included in ALL THREE groups.

Ultimately I will have a dozen or more groups to choose from but am just testing in a small, test dataset.

I'd appreciate any pointers about what I might be missing.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #632 by admin
Replied by admin on topic Multiple filed type and multiple groups
Hi.
The problem is related to the field type. Actually AutoGroup check the whole field value, because it expect the field is a single value field.

You are using a multi-checkbox field, so it will not work without modification.

A solution could be to add a single field for any group and replace Auto Group settings as follow:
cb_healthgroup;Health;Health;true
cb_energygroup;Energy;Energy;true
cb_transportgroup;Transport;Transport;true

Another solution could be a little change in the Auto Group code to allow "partial" matching of the value. I don't feel to suggest this as the best solution because it can create problems, but if you think to use Auto Group only with this scenario, I can send you the modified version.

Please, advise.
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds