Published on

Loading a specific Feather Template in Hybrid Mode

Authors

So if you have an existing Hybrid template and try to drop on a bootstrap layout widget (for example) you’ll get an error that it can’t find the template in ~/ResourcePackage/…

This makes sense in that when you base your page on a Bootstrap cshtml template it knows to load Bootstrap, but if you base it on a Masterpage, that Masterpage doesn’t live in the context of a resource package and you might have like 4 resource package themes in your project…WHICH TO LOAD!

The solution is super easy and elegant, just I think maybe not documented?

  1. Open the page templates: /Sitefinity/Design/PageTemplates
  2. On each template you need linked to a ResourcePackage click Actions-Properties
  3. Set the developer name to this convention ResourcePackage.templatename

So lets say you want to use bootstrap and your template is called Root it would be
Bootstrap.Root

That’s all there is to it, now feather will load all of it’s templates from the Bootstrap folder.

Boost your online presence.

Let us create the perfect digital experience for your company.

Contact us now