-
Notifications
You must be signed in to change notification settings - Fork 8
Public Website
Sebastian Fiedlschuster edited this page Oct 15, 2015
·
2 revisions
YourPlatform assumes that your organization has some kind of public website. This can either be an external website, or it can be delivered through YourPlatform itself.
The root element of the navigational structure is supposed to be the public website root.
Create a Page
as root element of the navigational structure and make it redirect to your existing public website.
# rails console
public_root = Page.create title: 'example.com'
public_root.redirect_to = 'https://example.com'
public_root.add_flag :root
public_root.child_pages << Page.find_intranet_root
public_root.save
Create a Page
as root element of the navigational structure and create some child elements for it. All descendant elements of that root page, except for everything under the intranet root, is considered to be the public website.
# rails console
public_root = Page.create title: 'example.com'
public_root.add_flag :root
public_root.child_pages << Page.find_intranet_root
public_root.save
# These are shown in the horizontal nav:
public_root.child_pages.create title: 'About us'
public_root.child_pages.create title: 'Products'
public_root.child_pages.create title: 'Contact'
# These are shown as boxes on the public root page:
public_root.child_pages.create title: 'Our top product'
public_root.child_pages.create title: 'Customer no. 10.000'
public_root.child_pages.create title: 'New TV ad'
public_root.child_pages.last(3).each { |p| p.add_flag :public_root_element }