- Issue created by @aiphes
- Status changed to Closed: works as designed
almost 2 years ago 9:49am 9 June 2023 - 🇳🇱Netherlands Lendude Amsterdam
As with most things Drupal, there is no 'right' way of doing it, whatever works for you is what is best.
My personal preference would be to do it in a template. Extensive rewriting has always lead to a maintenance burden in the future. Rewrites are hard to find in the UI (there is zero indication in the Views UI that a rewrite is in effect for any field) and error prone since you will not have an IDE available to you to point out any missing tags or other errors.
So I agree with your assessment that "The rewrite output option seem to me more simple", but in the long run, it will not be the best option in my experience.
In short, my 2 cents: If its done in a project that will only be live for a couple of months, do the rewrite, if you need to maintain the project for years to come, go for the template