[MAGNOLIA-1302] pages: pass view name to template, use view name as a template postfix Created: 16/Jan/07 Updated: 23/Jan/13 Resolved: 02/Mar/07 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | admininterface |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.2 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Philipp Bärfuss | Assignee: | Philipp Bärfuss |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Date of First Response: |
| Description |
|
Pass the view name as a string data value to the template (one template multiple views for example) Use the view name to build the template name in case the view is not 'show'. class = mypackage.MyPage and view = "error" --> /mypackage/MyPageError.html |
| Comments |
| Comment by Philipp Bracher [ 07/Feb/07 ] |
|
I commited a fix, that tests the existance of the template having the postfix. In case the template does not exist, it uses main template. |