You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a bug or a decided implementation approach that needs to be documented.
When making use of the Content/ templates folder in 2.4, the template took precedence over fields i.e. the Content SiteTree db field (or function) was overridden by the appropriate template, if found in the Content folder. I have found this technique to be very useful.
This has reversed in SS3. The db variable/ or function now takes precedence over the /Content/ template.
In my opinion, this ruins the opportunity to use 3rd-level subtemplating via $Content, as there is no clear way to get around this issue.
[https://github.com/silverstripe/sapphire/commit/521742aaf88bb2d48d56fa522483375c4dbe137e#L1L816 related commit]
[https://github.com//pull/661 My pull request, to revert the precedence as it was.]
The text was updated successfully, but these errors were encountered:
created by: jedateach
created at: 2012-07-23
original ticket: http://open.silverstripe.org/ticket/7692
This may be a bug or a decided implementation approach that needs to be documented.
When making use of the Content/ templates folder in 2.4, the template took precedence over fields i.e. the Content SiteTree db field (or function) was overridden by the appropriate template, if found in the Content folder. I have found this technique to be very useful.
This has reversed in SS3. The db variable/ or function now takes precedence over the /Content/ template.
In my opinion, this ruins the opportunity to use 3rd-level subtemplating via $Content, as there is no clear way to get around this issue.
[https://github.com/silverstripe/sapphire/commit/521742aaf88bb2d48d56fa522483375c4dbe137e#L1L816 related commit]
[https://github.com//pull/661 My pull request, to revert the precedence as it was.]
The text was updated successfully, but these errors were encountered: