In this case we want to try to create a module that will show data in a lookup box.
The data in the lookup box should be localized.
This means that for every locale defined (en, fr, nl) the data is shown for the locale the portal is presented in.
Download case
DNN KickStart module definitions for this case can be downloaded from the downloads page.
Building blocks
- Create secondary (lookup) module with localized data to lookin
- Create primary module with lookup field to lookup data
- Modify the primary sql and code to enable dynamic retrieval of data
- Create a new stored procedure to lookup data with a locale parameter field
- Modify the stored procedure to check if locale field exists
- Return the data to the primary module
Create lookup module

Create main module

Create a lookup field

That will look like this in the module:

New stored procedure
Create a new stored procedure to retrieve the data from the lookup field based on a parameter filled with the locale.
We have to use a trick called:
Select statement with dynamic columns based on data content.
More inside information can be found on this site about this topic.
Check if locale field exists
More inside information can be found on this site about this topic.