Notes
molpe edited this page Sep 13, 2010
·
2 revisions
CMS paths are always constructed using page’s slug. So, given a root document with slug ‘father’ and a child ‘child’, to access this child document you should enter ‘father/child’, whatever you wrote in page’s title.
<%= link_to 'Page', cms_connect_path(PATH_IN_CMS)%>
For example, given a folder ‘root’ with a child document ‘legal’:
<%= link_to ‘Terms of service’, cms_connect_path(‘root/legal’)%>
<%= show_page(PATH_IN_CMS) %>
For example, given a folder ‘root’ with a child document ‘banner’:
<%= show_page(‘root/banner’) %>
In order to get Vault to work, I had to add a “site” folder in the app/views/vault. In side of the site folder I created a file, show_page.html.erb. I used the file to displace the content of the page.
<%= @page.content -%>
Not sure if anyone else has faced this, but I thought I would throw it out there.