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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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...?