Module CustomFields Cases: Difference between revisions

Jump to navigation Jump to search
Line 203: Line 203:
The goal is to show two custom fields on the Third-Party module: one which gives the zone (secteur) of the third-party (Isere, Alpes du sud, Haute-Savoie...) and the other which gives relative to the zone the list of all the ski resorts (station_a) inside the selected zone.
The goal is to show two custom fields on the Third-Party module: one which gives the zone (secteur) of the third-party (Isere, Alpes du sud, Haute-Savoie...) and the other which gives relative to the zone the list of all the ski resorts (station_a) inside the selected zone.


NOTE: this will show how to manually manage this kind of requirements using overloading functions, but in latest CustomFields releases, the same solution can be achieved automatically using the Cascade option.
NOTE: this will show how to manually manage this kind of requirements using [[Module_CustomFields#Overloading_functions:_Adding_your_own_management_code_for_custom_fields|overloading functions]], but in latest CustomFields releases, the same solution can be achieved automatically using the [[Module_CustomFields#Cascade|Cascade option]].


We have one table '''llx_k_station''' (rowid, station (char50), secteur(char50)) which contains the following:  
We have one table '''llx_k_station''' (rowid, station (char50), secteur(char50)) which contains the following:  
439

edits

Navigation menu