Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit parent layout #1580

Closed
xyz opened this issue Apr 10, 2012 · 4 comments
Closed

Inherit parent layout #1580

xyz opened this issue Apr 10, 2012 · 4 comments

Comments

@xyz
Copy link
Contributor

xyz commented Apr 10, 2012

Page should inherit layout from their parents by default.

_form_advanced_options.html.erb:

    <% if @page.parent_id? %>
      <%= f.select(:layout_template, @valid_layout_templates, {:selected =>  @page.parent.layout_template}) %>
    <% else %>
      <%= f.select(:layout_template, @valid_layout_templates )%>
    <% end %>

Edit: Likewise for the page parent's view_template.

@parndt
Copy link
Member

parndt commented Apr 10, 2012

Can you open a pull request?

@xyz
Copy link
Contributor Author

xyz commented Apr 10, 2012

For layout_template, sure. I'd just like to figure out view_template first (new to refinery :) ).

@xyz
Copy link
Contributor Author

xyz commented Apr 10, 2012

Done, pull request opened.

@ugisozols
Copy link
Member

Fixed by #1581.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants