[ 'path' => '../resources' ] ]; $cms = cms($ECMS_Item_options); $item = $cms->item($ECMS_Item_sourcePath, $ECMS_Item_slug, [ 'page_path' => $ECMS_Item_pagePath, 'pretty_urls' => $ECMS_Item_prettyUrls ]); // This is for local preview mode, usually when previewing a template page // In that case, we can use the first file in the directory as a fallback if (!$item && $ECMS_LOCAL_PREVIEW) { if (is_dir($ECMS_Item_sourcePath)) { // get the first file in the directory $files = glob($ECMS_Item_sourcePath . '/*.{md,markdown,txt}', GLOB_BRACE); if (!empty($files)) { $ECMS_Item_slug = pathinfo($files[0], PATHINFO_FILENAME); $item = $cms->item($ECMS_Item_sourcePath, $ECMS_Item_slug, [ 'page_path' => $ECMS_Item_pagePath, 'pretty_urls' => $ECMS_Item_prettyUrls ]); } } } // Make $item available globally for use in portals and other templates $GLOBALS['ECMS_Item_rwF04FAEC0_2F6B_49D5_B0C4_7CCB04246DD7'] = $item; // log an error if the item is not found if (!$item) { error_log('CMS Item not found: ' . $ECMS_Item_sourcePath . ' ' . $ECMS_Item_slug); } })(); // End IIFE ?> Contact
Building Photo

Under Constructoion
Contact Us

UNDER CONSTRUCTION.
THIS FORM DOES NOT WORK YET

Use the form or reach out directly.

wrapper around {{item.body}} since body already contains HTML $itemTemplate = str_replace('

{{item.body}}

', '{{item.body}}', $itemTemplate); if ($item) { echo renderTemplate($itemTemplate, ['item' => $item]); } else { // @TODO: Add a "Not Found" template (or redirect option) echo 'No item found'; } ?>

The Kendalls

Located in New Jersey, USA

© The Kendalls, 2026