body_content_title doesn't display in result page #23

Closed
bricesanchez opened this Issue Aug 13, 2012 · 5 comments

Comments

Projects
None yet
4 participants
@bricesanchez
Member

bricesanchez commented Aug 13, 2012

We are not able to display this code on the layout of the result page :

<% content_for :body_content_title do %>
  <%= t('.search_results_for', :what => params[:query]) %>
<% end %>

Do you know how we could fix this bug ?

@robyurkowski

This comment has been minimized.

Show comment
Hide comment
@robyurkowski

robyurkowski Aug 16, 2012

Contributor

I can reproduce this, but I have no clue why this wouldn't work.

Contributor

robyurkowski commented Aug 16, 2012

I can reproduce this, but I have no clue why this wouldn't work.

@ghost ghost assigned robyurkowski Aug 16, 2012

@bricesanchez

This comment has been minimized.

Show comment
Hide comment
@bricesanchez

bricesanchez Aug 16, 2012

Member

I solved this problem by changing the partial _content_page.html.erb and no more using the original helper.

<div id='body_content' class='clearfix'>
  <% if content_for?(:body_content_title) %>
    <h1 id="body_content_title"><%= yield :body_content_title %></h1>
  <% end %>

  <div id='body_content_left'>
    <%= yield :body %>

    <% if !@page.nil? %>
      <%= raw @page.content_for(:body) %>
    <% end %>

    <%= yield :body_content %>
    <%= yield :body_content_left %>
  </div>
  <div id='body_content_right'>
    <%= yield :body_content_right %>
  </div>
</div>

<%= render '/refinery/draft_page_message' unless @page.nil? or @page.live? -%>
Member

bricesanchez commented Aug 16, 2012

I solved this problem by changing the partial _content_page.html.erb and no more using the original helper.

<div id='body_content' class='clearfix'>
  <% if content_for?(:body_content_title) %>
    <h1 id="body_content_title"><%= yield :body_content_title %></h1>
  <% end %>

  <div id='body_content_left'>
    <%= yield :body %>

    <% if !@page.nil? %>
      <%= raw @page.content_for(:body) %>
    <% end %>

    <%= yield :body_content %>
    <%= yield :body_content_left %>
  </div>
  <div id='body_content_right'>
    <%= yield :body_content_right %>
  </div>
</div>

<%= render '/refinery/draft_page_message' unless @page.nil? or @page.live? -%>
@robyurkowski

This comment has been minimized.

Show comment
Hide comment
@robyurkowski

robyurkowski Aug 17, 2012

Contributor

This isn't resolved -- let's keep it open until we can actually figure out the source of the problem.

Contributor

robyurkowski commented Aug 17, 2012

This isn't resolved -- let's keep it open until we can actually figure out the source of the problem.

@bricesanchez

This comment has been minimized.

Show comment
Hide comment
Member

bricesanchez commented Aug 17, 2012

Ok.

@Pym Pym referenced this issue in refinery/refinerycms-news Oct 4, 2012

Closed

body_content_title doesn't show up #116

@adamico

This comment has been minimized.

Show comment
Hide comment
@adamico

adamico Oct 22, 2012

Contributor

this is because search results page isn't present. Just do

rails g refinery:search && rake db:migrate && rake db:seed

to make body_content_title shows up and page not be marked as draft.
Mmh, maybe this should be made clear in docs (I'll do that)

Contributor

adamico commented Oct 22, 2012

this is because search results page isn't present. Just do

rails g refinery:search && rake db:migrate && rake db:seed

to make body_content_title shows up and page not be marked as draft.
Mmh, maybe this should be made clear in docs (I'll do that)

adamico added a commit to adamico/refinerycms-search that referenced this issue Oct 22, 2012

@ugisozols ugisozols closed this in 1aa8f2d Oct 22, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment