'https://appletreemedical.com.au', 'resources' => [ 'path' => 'resources' ] ]; $cms = cms($options); $itemOptions = [ 'page_path' => $pagePath, 'pretty_urls' => $prettyUrls, 'site_url' => 'https://appletreemedical.com.au' ]; $item = $cms->item($sourcePath, $slug, $itemOptions); // Preview mode fallback: use the first file in the directory if (!$item && $isPreview) { if (is_dir($sourcePath)) { $files = glob($sourcePath . '/*.{md,markdown,txt}', GLOB_BRACE); if (!empty($files)) { $slug = pathinfo($files[0], PATHINFO_FILENAME); $item = $cms->item($sourcePath, $slug, $itemOptions); } } } // Store item for cross-template access ecms_set('item_rw15E86E91_A838_4373_BFAF_ECFE8D5915D1', $item); if (!$item) { error_log('CMS Item not found: ' . $sourcePath . ' ' . $slug); } })(); ?>
{{item.body}}
', '{{item.body}}', $itemTemplate); if ($item) { echo renderTemplate($itemTemplate, ['item' => $item]); } else { echo 'No item found'; } ?>
Apple Tree Medical
ph: 4038 2777 | fax: 4038 3077
2-6 Cumberland Avenue, Smithfield, Qld,4878
open: monday to friday 8am to 5pm