Can't override /framework/ templates?

已查看 224 次
跳至第一个未读帖子

Uncle Cheese

未读,
2012年9月18日 11:52:082012/9/18
收件人 silverst...@googlegroups.com
I have no problems overriding templates in /cms/templates, but anything in /framework/admin/ doesn't seem to respect my overrides. For instance:

/framework/admin/templates/Includes/LeftAndMain_Menu.ss

cannot be overridden by:

/mysite/templates/Includes/LeftAndMain_Menu.ss


Ryan Wachtl

未读,
2012年9月18日 13:15:162012/9/18
收件人 silverst...@googlegroups.com
Possibly related, I've also experienced some difficulties in overriding templates of other modules when I rename 'mysite' => 'app'. For instance the templates in my project directory (app) no longer override the blog module's templates. I would expect that the templates in my project folder would always take precedence, regardless of directory name.

Is there an outline of SS 3 template hierarchy, that I have missed?

- Ryan

--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/CLpP0cYQA9gJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.

Anselm Christophersen

未读,
2012年9月18日 15:08:182012/9/18
收件人 silverst...@googlegroups.com
I'm having the same issue.
For now i renamed my project directory to "zzz_mysite" as I had seen it somewhere in the docs, and it works - though I don't like that naming either.

Anselm

Aaron Carlino

未读,
2012年9月18日 15:40:582012/9/18
收件人 silverst...@googlegroups.com
Oh, right! I forgot about zzz_admin! Good to know.

But I would think "mysite" would override "framework" if alphabetization really does count.. ??

Regards,
Aaron

Nicolaas Thiemen Francken - Sunny Side Up

未读,
2012年9月18日 19:27:362012/9/18
收件人 silverst...@googlegroups.com
Does the same thing happen when you add the files to "themes"? 

Simon J Welsh

未读,
2012年9月18日 19:32:282012/9/18
收件人 silverst...@googlegroups.com
The CMS unsets the theme, so no templates are loaded from there.
On 19/09/2012, at 11:27 AM, Nicolaas Thiemen Francken - Sunny Side Up <ma...@sunnysideup.co.nz> wrote:

> Does the same thing happen when you add the files to "themes"?
>

Ingo Schommer

未读,
2012年9月18日 19:39:432012/9/18
收件人 silverst...@googlegroups.com
Known bug, unfortunately not an easy fix: http://open.silverstripe.org/ticket/7085

On 19/09/2012, at 1:27 AM, Nicolaas Thiemen Francken - Sunny Side Up <ma...@sunnysideup.co.nz> wrote:

Does the same thing happen when you add the files to "themes"? 

回复全部
回复作者
转发
0 个新帖子