- You will need to add the config to initializer.
- Create the view.
- (re)start your Rails server.
- Override (or better solution) the pages action (see "app/views/refinery/admin/pages/_actions.html.erb" in this gist for an example) or else, add ?view_template=my_content_type to the page's new URL. Ie: http://localhost:3000/refinery/pages/new?view_template=my_content_type
See some screenshots:
http://cl.ly/2W2Z1E342B3c2x1Q1I3t
@jipiboily, also I noticed one other thing, and that is: even if my "bidon.html.erb" file is completely empty, I still get the same result.
What I did was I deleted bidon.html.erb (my_new_view.html.erb file you posted) with this content:
<%= raw @page.content_for(:intro) %>
<%= raw @page.content_for(:body) %>
<%= raw @page.content_for(:right) %>
<%= raw @page.content_for(:footer) %>
<%= raw @page.content_for(:related) %>
And what happened was, I got a content from "intro" section, and that was the content I defined in backend (administration).
This is becoming more and more confusing. Do you have some logical explanation? Thanks!