Jayne Doe
Jayne Doe

Reputation: 1

How do I override the layout for a custom extension in RefineryCMS?

I generated an extension for RefineryCMS, following the instructions in the Refinery Guide for 'Generate an Extension to Use Your MVCs'. I now need to alter the layout, but where is it? I cannot find any documentation that will tell me where I might overwrite it from.

Upvotes: 0

Views: 46

Answers (1)

morissetcl
morissetcl

Reputation: 564

Maybe it's a bit late.

If I well undestood your issue, I will advise you to add your custom layout inside app/views/layout/my_custom_layout.html.erb.

Then I render it as follow in your extension view:

<%= render '/layout/my_custom_layout' %>

Hope It will help someone.

Upvotes: 0

Related Questions