customer-riverside/web/modules/custom/riverside_pt/riverside_pt.routing.yml
Philip Peterson 797e580cc0 Create custom /contact page with details and appointment CTAs
- Refactor AboutController to PageController to handle multiple static pages:
  - /about
  - /services/{slug} (diagnostic, sports, pre-post, neuro)
  - /contact (new)

- New template riverside-pt-contact.html.twig:
  - Contact details (address, phone, email)
  - Office hours
  - 'Send us a message' section directing to booking tool
  - Multiple 'Make an Appointment' links back to /home#book-an-appointment

- Updated riverside_pt.routing.yml with riverside_pt.contact route
- Registered 'riverside_pt_contact' theme in riverside_pt.module
- Updated riverside_pt.install to skip legacy node creation for 'Contact' (and previously About/Services) to avoid alias conflicts
- Minor updates to home template, header handling, libraries (scroll support), and other controllers for consistency with page flows and email/booking features

All details pages (/about, /services/*, /contact) now include clear links back to 'Make an Appointment'.
2026-06-03 23:55:02 -07:00

74 lines
1.9 KiB
YAML

riverside_pt.palette:
path: '/dev/palette'
defaults:
_controller: '\Drupal\riverside_pt\Controller\PaletteController::page'
_title: 'Color Palette'
requirements:
_permission: 'administer site configuration'
riverside_pt.home:
path: '/home'
defaults:
_controller: '\Drupal\riverside_pt\Controller\HomeController::page'
_title: 'Welcome'
requirements:
_permission: 'access content'
riverside_pt.booking_store_slot:
path: '/schedule/book/slot'
defaults:
_controller: '\Drupal\riverside_pt\Controller\ScheduleController::storeSlot'
requirements:
_permission: 'access content'
methods: [POST]
riverside_pt.schedule_events:
path: '/schedule/events'
defaults:
_controller: '\Drupal\riverside_pt\Controller\ScheduleController::events'
requirements:
_permission: 'access content'
options:
_auth:
- cookie
riverside_pt.about:
path: '/about'
defaults:
_controller: '\Drupal\riverside_pt\Controller\PageController::page'
_title: 'About'
requirements:
_permission: 'access content'
riverside_pt.services:
path: '/services'
defaults:
_controller: '\Drupal\riverside_pt\Controller\HomeController::redirectToAnchor'
destination: '/home#pt-services'
requirements:
_access: 'TRUE'
riverside_pt.faq:
path: '/faq'
defaults:
_controller: '\Drupal\riverside_pt\Controller\HomeController::redirectToAnchor'
destination: '/home#pt-faq'
requirements:
_access: 'TRUE'
riverside_pt.service:
path: '/services/{slug}'
defaults:
_controller: '\Drupal\riverside_pt\Controller\PageController::service'
_title: 'Service'
requirements:
_permission: 'access content'
slug: 'diagnostic-assessment|sports-rehabilitation|pre-post-surgical-rehab|neurological-therapy'
riverside_pt.contact:
path: '/contact'
defaults:
_controller: '\Drupal\riverside_pt\Controller\PageController::contact'
_title: 'Contact'
requirements:
_permission: 'access content'