0

When taking a copy of the node template, should you keep/maintain the original code that is in the file?

Example the article tag.

nid; ?>" class=" clearfix"> etc..

What are the implications of removing this, if any?

2
  • 2
    remove it and find out.
    – No Sssweat
    Commented Mar 29, 2016 at 21:33
  • If you keep the original code then what is the point of making a copy. You are making the copy so that you can make changes. Commented Mar 30, 2016 at 7:14

1 Answer 1

1

Actually you're free to edit templates !

  • The theme's css might depend on some tags, especially the article tag, so you could lose layout/design
  • If you're a forward thinking brave drupalista you definitely want to keep title logic and the possibility of rendering all fields (and comments) and respect the view modes ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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