Inline Edit: Turn on editing by default (without clicking the Toggle Inline Edit button)

You may want to make it so that users don't need to click the "Toggle Inline Edit" button when visiting a View. Instead, when visiting a View, you want the user to be able to start editing right away.

Why would you want to do this? One of our customers is the developer for a website used by many other users, and he didn't think the website users would know that they needed to click the "Toggle Inline Edit" button. He just wanted everything to be editable for them right away. They didn't want to receive questions like "Why can't we click to edit the fields?".

If you want Inline Edit enabled—without having to click the "Toggle Inline Edit" button—add this code to your website.

Not sure how to add this code? Here's how to add the code.

A few notes:

  • This still requires users have permission to edit an entry
  • If the user then clicks the "Toggle Inline Edit" button, their preference will be saved (disabled/enabled). This code just sets the default editing value to enabled.
  • The code does not provide cookie usage notice for users in the European Union—you will need to provide that separately if your site serves EU users.