39
Quote:
sunsnapper wrote:
New module: "LookUp"
- This module allows you to add tables of data to the database (via the XOOPS interface or by importing a delimited file).
- Then it allows you to indicate a field (at least one) that you can do a lookup on.
- The data for that record is then exposed, so that desired output can be formatted via template as desired.
Quote:
MithyT2 wrote:
Not quite sure, what you want this to do. Should this be available to all users? Is it a way to present one-table information? I'm fumbling a bit here, so please do elaborate
My thought is this would be for the admin, though I suppose any group you wanted to give permission to could use it. I guess you might call it an extensible module. A tool someone could use to create a basic application without building full blown module.
It allows you to create a table of records... preferably by adding records in the module interface, but, with an option to upload comma delimited or other standard db file format.
(It could also have an option to point to existing records with a particulr prefix... say, LookUpApp1 or whatever naming convention).
Then it allows you to indicate which field is the lookup field and which fields you want to return on a match.
It then creates two basic templates (that the admin can modify later if they like) for the application you have created. One is the user input template... where they can enter a zip code, or actor name, or whatever it is you have set as the lookup field. The next template is the output template which returns the data from the matching record.
(Each pair of templates would be named for the application... you might have block_input_app1 and block_output_app1 or if the user named the application something more useful, like Movie Actor, it could create
block_input_movieactor
block_output_movieactor
The user could create as many uniquely named "LookUp Applications" as they might need, all without ever writing the module themselves. It just hides a few layers of complexity from the user.
Hope that makes a little more sense.