By lscalado on
Hello,
I need some help on simple example of how to make a list with insert/edit/delete filter if possible, but it can try to discover if I know make insert/edit/delete.
I can not find this simple example or some help regarding this.
I would be very happy to achieve that help.
Thank you
Comments
Bom dia Leonardo! Tudo bem
Bom dia Leonardo! Tudo bem com Brasil eu espero! lol.
I'm not sure what you mean by "make a list with insert/edit/delete filter"-- could you explain a little more?
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
Sim, tudo bem com o Brasil!
Sim, tudo bem com o Brasil! Que bom ajuda!
I try illustrate. For example, for example, I have a table with the following structure:
contact
----------------------------
cid, int, auto_increment, PK
status, char(1)
fname, varchar(32)
lname, varchar(64)
email, varchar(64)
timestamp, int(14)
----------------------------
I need know how make a simple list with records from this table or something similar to it.
In this list I need filter by status(slect with values) or lname(text field with SQL "like" condition) (if possible) and taking the possibility of inserting a new record, edit or delete it.
I believe to be asking a lot, but I believe to be a base to build everything they need using drupal.
If there is an example of agenda of contacts I would be very happy to study it!
Thanks for your attention!
Are the people in this list
Are the people in this list users of the site? Or are you just storing this information in the site?
If they are also the site users, this type of information is handled with the core profile module that allows basic contact records to be used. But since you want to manipulate lists of this information you need to use one of the users as nodes modules (usernode, nodeprofile, bio, etc) to turn users into nodes and then use the Views module to slice and dice different lists.
If these people are not going to be users of the site, you can just set up a content type for them, use cck fields for the fields, and then again, use the views module to present different views of the lists.
i hope that makes sense...
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
One more help...
I only illustrate with this tableI just used as an example of this structure table to explain to you what you want.
I already tried using Views and CCK but did not, I do not know why? I am using version 5.x of drupal for this.
If I can read the fields of the table would be very happy. But I only need a list.
Thank you for your help!
well, if you don't want to
well, if you don't want to use the drupal db and access the info with drupal modules, you could always query your other db/tables directly. You can enter any php you like into a page-- just use the "PHP code" input format and write php to access your info.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz