rubycentral / cfp-app

Rails app for managing a conference CFP
MIT License
224 stars 155 forks source link

Organizer Selects Landing Page #267

Closed jonsgreen closed 2 years ago

jonsgreen commented 2 years ago

Organizer Selects Landing Page Reason for Change

This PR allows an organizer to select which page will serve as the landing page for the website. The thought is that when an event is first announced there will likely be a different page to serve as the landing page than when registration starts and the conference begins.

Moreover, this PR hopefully improves some of the routing complexity needed in order to host multiple websites using custom domains without also getting tangled in the home page for CFP app itself. One challenge the PR hopefully addresses is a possible conflict between routes like railsconf.org/about which should route to the latest Railsconf about page and railsconf.org/railsconf-2021 which should route to the landing page for an older Railsconf site. Since these two urls have similar signatures the route param was renamed to :domain_page_or_slug for clarity.

Changes

Change the default home page Loom Demo