Skip to content

Loading…

body_content_title doesn't display in result page #23

Closed
bricesanchez opened this Issue · 5 comments

4 participants

@bricesanchez
Refinery member

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

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

@robyurkowski robyurkowski was assigned
@bricesanchez
Refinery 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? -%>
@robyurkowski robyurkowski reopened this
@robyurkowski

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

@bricesanchez
Refinery member

Ok.

@Pym Pym referenced this issue in refinery/refinerycms-news
Closed

body_content_title doesn't show up #116

@adamico

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 adamico added a commit to adamico/refinerycms-search that referenced this issue
@adamico adamico Add more install infos to readme.md, fixes #23 67fb950
@ugisozols ugisozols closed this in 1aa8f2d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.