0

One of the UI/UX issues with Drupal is that theme templates are not editable from within the interface. Even for devs who know what they are doing this is awkward time consuming distraction needing FTP and other software outside of Drupal to create/remaster themes or put in a little logic . While knowing that the ability to edit tpl.php templates from the UI can potentially create security issues, still it seems to me that showing the template code and ability to re-write templates within the interface is lacking in Drupal 7.

Css can be writen to files (from themes and modules ie administratiom theme and css editor) so why not templates?

Can it be done?

  • There's stuff like drupal.org/project/elfinder, that has inline file editing (that's the only one I could find with a stable or recent release/work). It isn't a common requirement really, most developers prefer to edit code in their IDE, test it, commit it to version control, and deploy it, preferably by CI, to ensure a good history and safe build. I think it's safe to assume that the security risks you mentioned are at least one reason that those responsible for making the decision don't consider this to be lacking in the interface – Clive Aug 14 '17 at 14:48
0

As far as I know, the best you could do in Drupal from the admin side is alter the layout using Display Suite, Panels, and to some extent, Field Groups (Bootstrap Field Group can come in handy). Advanced functionality will still require code access (i.e. adding custom layouts and layout CSS). That's usually what you end up doing with templates most of the time, just moving things around.

It's rare that you edit the widgets and field outputs (you write formatters for those, which then can be changed via admin once installed). Also, editing widgets using templates instead of formatters is a maintenance nightmare and full of surprises.

Even for devs who know what they are doing

Devs who know what they're doing store changes in version control, and therefore code. ;)

| improve this answer | |

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.