By lscalado on
Hi,
Have any way, module and etc. I generate automatically a edit, view and delete action from a custom table? For weeks I try found one solution, I try viewedit module, but I don't have success for choose a custom table, I read and don't found nothing which can help me.
If I have some help I very thankful for that!
Comments
I think you want to use CCK and views
I think you want to use the Content Construct Kit (CCK) module and views. I would use CCK to create a content type that represents one row in the table and views to present the information as a page view in table format.
You can give me a sample of this?
I read about, but I don't have success.
You can help me on this? Show me a sample? I'm very glad about you help.
To the handbooks
First I would suggest looking at the CCK handbook and the Views documentation in the handbook.
In general terms lets say you want you table entries to contain information about cars, for our purposes we will say make, module and year. You could create a content type with CCK called 'car' that has three fields, 'make', 'module' and 'year'.
Then you could create a page view that shows a table. under fields select 'make', 'module' and 'year' in the order you want them to show and under filters add a 'Node: Type' filter set to 'car' (your new content type).