Dotclear

Ticket #2249 (closed defect: wontfix)

Opened 8 years ago

Last modified 8 years ago

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.

  1. In your Dashboard - Blog Appearance click on Custom theme and make it to your default theme
  2. Click on Edit theme files
  3. In __layout.html, make a change that you immediately recognise like take off the date
  4. Save __layout.html
  5. Click on Go to side

Result: You will see that your home.html hasn't taken over the change and still displays the date

  1. Enable the Berlin theme as default
  2. Click on Edit theme files
  3. Click on home.html
  4. Copy {{tpl:extends parent="__layout.html"}}
  5. In Blog appearance make the Custom theme to your default theme
  6. Click once more on Edit theme files
  7. click on home.html
  8. replace the existing {{tpl:extends parent="__layout.html"}} with your copied {{tpl:extends parent="__layout.html"}}
  9. Save the change
  10. 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:1 follow-up: ↓ 3 Changed 8 years ago by ben_griffith

Please note that I can't write the correct file name for layout.html

comment:2 Changed 8 years ago by noe

  • Description modified (diff)

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.

Last edited 8 years ago by franck (previous) (diff)

comment:5 Changed 8 years ago by franck

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone A definir deleted
Note: See TracTickets for help on using tickets.

Sites map