[QUOTE=tomas liubinas;18437]And another one:
https://bugs.oxid-esales.com/view.php?id=1471
Just before QA confirms this as a bug I would like to provide some background notes on this topic. Actually as developers we are aware about various places where templates could be optimized. However template changes are quite sensitive issue. As you said for shop owners updating templates is a hell. It means that with every template change which we implement, all existing shop owners have to change them as well. This means thousands of template changes. With this in mind our strategy is to change templates only when it is really necessary and in some cases if we can do a workaround we even prefer leaving templates intact.
Anyway it is really good to hear an opinion of people who work with real designs. So thanks again for this thread.[/QUOTE]
That is exactly the reason why I believe, similiar template-code should be there only once!
Today you need to update “account_user”, “register” and “user” if something changes in the user-data in these templates, as was the case with 4.2.0.
So if you combine the user-data-portion of all three templates into one “include” file, this part needs to be changed only once instead of 3 times as it is now.
[B]And [/B]you will have a consitent layout for the user-data area in all templates.
Yes, you would need to update the three templates again, but afterward you will harvest the benefit of doing so, by having to look at only one file to change.
Just to give you my experience with 4.2.0 Template-Updating:
it took me almost a day of very concentrated work to do the update, but still I managed to introduce some mistake every now an then…
The problem ist, that most likely you can’t take the standard-template based update-info, because you modified the template (e.g. moved around or added/deleted some things), so you have to find the place in your template where to apply the code-change to.
So, avoiding any update which can possibly be avoided helps…
Especially when bulky templates like the above mentioned are concerned.