Modify Content Directly Using Editable Views Module

The Editable Views module allows you to edit fields (title or Field API) directly from a views page. You could use this module to create a page – with Views – that allows content editors to change content directly, without having to edit individual pieces of content.

In this tutorial, I’ll show you how to create a views listing page that allows you to edit the Title, Tags and Image field.

Getting Started

Before we can begin, download and install Views, Entity API and Editable Views.

If you use Drush, run the following command:

$ drush dl views ctools entity editableviews
$ drush en views views_ui entity editableviews

Create Editable Views Page

Before we can create a useful views pages, make sure you have some article content. It’s important to note that the module only allows you to “edit” content. If you need to create new content, then go to Content -> “Add content” (node/add) and create some articles.

1. Go to Structure -> Views and click on “Add new views”.

2. Fill out the “Add new view” form with the values defined in Table 1.0 and click on “Continue & edit”.

Table 1-0. Create a new view

Option Value
View name Article Edit
Machine name article_edit
Show Content of type Article
Create a page Checked
Page title Article Edit
Path article-edit
Display format Editable table (Important)

3. Click on the “View published content” link within the “Page settings” field-set and change the permission to “Administer content”.

WARNING: If you do not change the permission, then anonymous users could access this page and change content.

4. Click on the Add link within the Fields area and enter “editable” into the Search text field.

Fig 1.0

5. Check “Content: Title (editable)”, “Content: Tags (editable)” and “Content: Image (editable)” and click on “Apply (all displays)”.

6. Rearrange the fields and remove the default “Content: Title” field. Once all the “editable” fields have been added, the fields area should look like the image below:

Fig 1.1

7. Save the view and go to /article-edit and test the page out. Change a few fields and click on Save.

Fig 1.2

Now you have a views page that allows editors to modify content. This will save you a lot of time because you can update a bunch of articles all from a single page.

Further Resources

If you have any questions, please leave a comment.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top