Jump to:

1131 Posts in 1965 Topics by 402 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Upgrade from 3.1.0-beta3 to 3.1.0-rc1: template hierarchy issue?

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 351 Views
  • richard-ward
    Avatar
    Community Member
    31 Posts

    Upgrade from 3.1.0-beta3 to 3.1.0-rc1: template hierarchy issue? Link to this post

    Hi,

    I have been working on a project not due to be delivered for a few months, so I have been working with the 3.1.0 beta, and now release candidate versions so that I will be up to date when I do deliver. Along with the default install I have the blog, dms and widget addons. Under beta3 I was able to override the WidgetHolder.ss template by placing my own WidgetHolder.ss template in themes/nc/templates/Includes/, however, after upgrading to rc1, this template is no longer used and the default WidgetHolder.ss template from the widget addon is used instead. Has something changed that I need to change to make this work again?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Upgrade from 3.1.0-beta3 to 3.1.0-rc1: template hierarchy issue? Link to this post

    It should work as per 3.0, I'm not aware of anything that should change that in 3.1 (overriding widget myself but I keep my templates in app/templates/) Widget.ss and WidgetHolder.ss I believe need to go in that root templates folder (i.e not in includes)

  • richard-ward
    Avatar
    Community Member
    31 Posts

    Re: Upgrade from 3.1.0-beta3 to 3.1.0-rc1: template hierarchy issue? Link to this post

    Hi,

    Yes, I should really have put a reply on yesterday - I found that moving my WidgetHolder.ss to the root templates directory rather then in Includes resolved my issue. I was sure I had had it working in Includes, but presumably I didn't!

    Many thanks for the reply.

    351 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.