Lost Newbie - How can I get content to display in custom application layout?

27 views
Skip to first unread message

Kim Inah

unread,
Aug 12, 2016, 2:28:54 PM8/12/16
to comfortable-mexican-sofa
I've been able to iterate over the navigation links for my customer navigation like so:

div div div...
       <ul id="sidebar" class="nav nav-stacked affix">
           <% Comfy::Cms::Site.first.pages.root.children.published.each do |page| %>
             <li><%= link_to page.label, page.url(:relative) %></li>
           <% end %>
      </ul>
      </div>
    <div class="col-sm-10">
      <div class="row">
        <div class="col col-sm-12">  
         <%= yield %>
        </div>
      </div>

but I have no idea how to make the pages show up as the yield. Do I need to force render my own layout for each CMS page? Or somehow pass the nav selection to render content in yield...?
Reply all
Reply to author
Forward
0 new messages