Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Template overriding


Reply

4 Posts   1959 Views

Avatar
volker

6 January 2009 at 8:39am Community Member, 4 Posts

Hi,

the documentation about themes development at [url]http://doc.silverstripe.com/doku.php?id=themes:developing[/url] mentions that templates can be overridden in the folders "mysite", "themes" and "module" where templates from "mysite" get the highest and the ones from the module directory the lowest priority. This seems reasonable to me, but unfortunately this isn't true for SS 2.3.0-rc2. Instead the templates from the themes folder override the ones from "mysite".

I searched around and found an older forum entry "Themes in v2.1.0" ([url]http://silverstripe.org/archive/show/6623[/url]) where this question was discussed already for older SS versions - unfortunately without any resolution (and the entry was read-only, that's why I open a new entry for this issue here).

What's the status of this problem? Will it be resolved in the future or will the documentation be updated to reflect the real behavior?

Thanks,
Volker

Avatar
Hamish

6 January 2009 at 11:51am Community Member, 712 Posts

Yeah, that should really be changed, although it could impact a lot of people.

Ticket and patch raised here: [url]http://open.silverstripe.com/ticket/3300[/url]

Avatar
volker

6 January 2009 at 1:05pm Community Member, 4 Posts

Thank you for the fast patch!

I've just double-checked that it works fine for me.

Are there any estimations if this change will be in the next official 2.3 release?

Regards,
Volker

Avatar
Hamish

6 January 2009 at 2:07pm Community Member, 712 Posts

I doubt that it would be. 2.3 is right at the end of release candidate phase, and this sort of change could trip a lot of people up.

SSViewer is pretty stable though. Nothing wrong with applying the patch to your installation, and using 2.3 for everything else - should work fine.