AI 對話紀錄 March 21, 2025
Design Brief: CMS Structure for Chaplaincy Site
Main Designs
Fixed-Slug Structure: The website uses pre-defined pages with fixed slugs to ensure predictable content placement and easy updates. Pages include:
current-campaign.php: Active funnel page (e.g., Vision, Testimonials).
past-campaigns.php: Lists all archived campaigns.
highlight01.php to highlight04.php: Four most recent sharing/photos posts (max of four).
about.php, contact.php, donate.php: Placeholder pages for static content.
AppGini as CMS: Content is managed in AppGini via the special_pages table, with pre-defined slugs selected via a dropdown to prevent errors.
Publii for Frontend: Publii generates static pages with .php slugs, using override/page.hbs to include dynamic content via PHP.
Social Media Integration: Highlights are limited to four, encouraging visitors to check Facebook/YouTube for more updates.
Main Logic
Content Mapping: The PHP script (dynamic-special-page.php) matches the page slug (e.g., highlight01) to the slug field in the special_pages table to display the correct content.
Highlight Shifting: When a new highlight01 is added, existing highlights shift down (e.g., highlight01 becomes highlight02, etc.) via AppGini hooks.
Campaign Archiving: Adding a new current-campaign archives the old one (status set to Archived) for display on past-campaigns.php.
Navigation: The current-campaign page includes a “Recent Highlights” section linking to highlight01–highlight04, with a prompt to visit social media for more.
To-Do Items
AppGini:
Create the special_pages table:
Add hooks in hooks/special_pages.php to:
Lock the slug field after creation.
Shift highlights (highlight01 to highlight02, etc.) when a new highlight01 is added.
Archive the old current-campaign when a new one is added.
Add initial records (e.g., current-campaign, highlight01).
Publii:
Create pages with slugs: current-campaign.php, past-campaigns.php, highlight01.php–highlight04.php, about.php, contact.php, donate.php.
Update override/page.hbs to include dynamic-special-page.php.
Upload dynamic-special-page.php to QNAP (with logic for campaigns, highlights, and placeholders).
Add navigation menu links to key pages.
Test:
Regenerate the site, sync to QNAP, and verify content loads on current-campaign.php, highlight01.php, etc.
Test highlight shifting and campaign archiving in AppGini.
Copyright © 2023 Curation Web 我的資訊「展」輯. All Rights Reserved | Powered by Bludit | Theme by BlThemes