Assign entities to a category based on a field

More
5 years 7 months ago #76659 by GaelP
Hello,

I would like to assign automatically newly created entities based on the result of a field, how can I do that ?
If possible I don't want to to add another field category to my form.

I have different sub-categories that are regions of France, and when people create entities, based on the International address field it should assign them automatically to a region sub-category.
This is then to ensure a good workflow validation (some people can validate entities from specific regions).

Thank you very much for your help.

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

More
5 years 7 months ago #76660 by micker
hello can you explain more but first step :
- you can't add field in category
- for me 1 category = 1 country its not a good solution. 1 cat = X country and use field for country, more simple more flexible

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
5 years 7 months ago #76661 by GaelP
En fait c'est surtout pour le workflow de validation, que les entités créées par les utilisateurs soient automatiquement dispatchés dans une sous-catégorie basé sur le champ Adresse internationale de l'entité créée.

En gros : création d'une entité par exemple à Brest (via le champ International Address). A la sauvegarde, l'entité est affecté automatiquement à la sous-catégorie (déjà créée) "Bretagne".
Comme ça, les responsables de site qui ont les droits sur la sous-catégorie Bretagne peuvent valider cette entité.


ENGLISH
For example : creation of an entity in Brest, France (through the International Address field). When saved, the entity is set automatically to the sub-category (already created before) named "Bretagne" (region of Brest, France).
Like that, the administrators who have rights on the Bretagne sub-category can validate this entity.

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

More
5 years 7 months ago #76662 by micker
la comme ca ty peus pas ....
faudrait coder un peu de js a mon avis .... un js qui affcterai la catégorie en fonction d'une valeur dans un champs ...
Mais c'est du dev special

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
5 years 7 months ago #76663 by GaelP
Le dev ne me dérange pas du tout, mais c'est possible de faire ça sans "casser" FlexiContent ?
Où est-ce que je peux faire ça, genre le point d'entrée pour le dev ?

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

More
5 years 7 months ago #76664 by micker
en fait dans ton type tu peus intégrer du js dans ton formulaire de saisie (back en front)
apres faut savoir faire du js

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.457 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline