37 Posts
PierreP
8 years ago
3
Topic

Hello,

I'd like to create list of user groups with a first stage in which the user selects the Parent ID and in the final stage all user groups.

I have groups like this :

- countries
--- France
------ Paris
------ Marseilles
------ Strasbourg
--- USA
------ New-York
------ Washington DC
------ Chicago
--- United Kindgom
------ London
------ Manchester
------ Liverpool

...

I'm looking to create a first stage where the user selects the country and in the final stage there is a list of all towns of the country selected in the first stage.

So in my search, I have :

  1. CCK field - first stage - dynamic value : user_group
  2. A dynamic select - first stage - with all countries (so WHERE parent_id = id_of_countries ) ; storage : standard - user groups - parent_id
  3. Search buton - first stage
  4. User Group Parent ID - final stage - the default joomla field
  5. CCK field - final stage - dynamic value : user_group

The problem is that doesn't work : when i select a country, sub-groups are not visible (no results).

Can you help me please ?

Thank you !

Get a Book for SEBLOD
8 years ago
1
Level 1

Hi PierreP,

I think it's better to use two s elects dynamic cascade in your case, than a search with two stage.

  • The first select for parent_id (France, USA,...)
  • The second select for the city  (Marseille, Paris,...)


Regards.

Lionel

37 Posts
PierreP
8 years ago
0
Level 2

Thank you Lionel for your answer.

I don't think that Cascade is the solution because I need a list of user groups from where I can manage them.

It's not in a form.

Finally, I created two list : the first of countries and the second of towns and in each country there is a link to the second list. I pass the id of the country via the url.

Thank you !

8 years ago
0
Level 1

Hi PierreP,

I think I understood your need. 

You want to make a "User groups Manager", so a List in front where you can manage / sort / filter your User Groups.

I think that you have the two fields "Country" & "City" in your User Groups Content type, so you can filter your list on this two columns.

The plugin field select Cascade is not only working in a Content type form, but also in a search form and can be useful here.


Regards.

Lionel

Get a VIP membership