1

I need to implement views with a table format to display fields for selected content. I would like one of the columns to have edit/delete links that will request perform the desired task for the row selected. I have seen it done on sites, but have not found an example In which to review the view configuration.

Clarification: Each row in a table represents a content node and each column would display a field in the content type. I want to put an edit link that will call up the specific node in that row in the editing form.

  • By default you can find edit and delete link for any content type in view just add new field and search for edit and delete,or you ask about something else – Ahmed Jun 13 '12 at 21:22
  • Ahmed, your comment is not clear. What do you mean by "search for edit and delete"? – Ashlar Jun 14 '12 at 1:49
  • edit and delete field in view (you can search for fields) – Ahmed Jun 14 '12 at 10:49
3

Could you just add a field with the node ID and rewrite it to reconstruct the url, inserting the node id where applicable (different structures for different entity types)?

  • I could if there were only one option, but I have seen views displays with both links in the same table cell. – Ashlar Jun 14 '12 at 1:51
  • You can add another nid field and use the table settings to combine the two columns into one, with a custom separator for the links. That's how most views do it – Clive Jun 14 '12 at 6:40
2

There is a module for that which could help you: the editablefields module.

This module allows CCK fields to be edited on a node's display (e.g. at node/123), not just on the node edit pages (e.g. node/123/edit). It also works within the Views module, etc. Anywhere a 'formatter' can be selected, you can select editable (or click to edit).

This module has been totally re-written for Drupal 6, and it is very much simpler.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.