Ticket #2249 (closed defect: wontfix)
Default home.html issue
Reported by: | ben_griffith | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | module:core | Version: | 2.11.2 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by noe) (diff)
I noticed that the default home.html seems to be dodgy.
- In your Dashboard - Blog Appearance click on Custom theme and make it to your default theme
- Click on Edit theme files
- In __layout.html, make a change that you immediately recognise like take off the date
- Save __layout.html
- Click on Go to side
Result: You will see that your home.html hasn't taken over the change and still displays the date
- Enable the Berlin theme as default
- Click on Edit theme files
- Click on home.html
- Copy {{tpl:extends parent="__layout.html"}}
- In Blog appearance make the Custom theme to your default theme
- Click once more on Edit theme files
- click on home.html
- replace the existing {{tpl:extends parent="__layout.html"}} with your copied {{tpl:extends parent="__layout.html"}}
- Save the change
- Click on Go to side
Result: Even it looks like it's the same code as before, but now it's working and home.html displays the changes from __layout.html correctly.
Change History
comment:3 in reply to: ↑ 1 Changed 8 years ago by noe
Replying to ben_griffith:
Please note that I can't write the correct file name for layout.html
I edited the ticket in order to escape the wiki formatting that would prevent __layout.html to be correctly spelled ;-)
comment:4 Changed 8 years ago by franck
Ok, I see the problem:
The modification of an included (or extended) template file, as __layout.html is, is not detected by the template engine.
The fix implies to parse inside the files rather than only comparing date of source and compiled file and it will not be trivial to do.
Meanwhile I recommend to clear the template cache in order to force the (re-)compilation of modified templates.
Please note that I can't write the correct file name for layout.html