ld Developer From New Zealand Member since Oct 2024 ld Feb 3 2025 08:55 AM I have found a lot of questions on the forum darting around the topic and everybody settling on regularly hacking the template files to achieve it. So far, unable to find any litecart functions to correctly/efficiently achieve the following... using the admin console, add an information page and call it home. This page is to be included on the home page (index.inc.php) so on index.inc.php you would use something like<?php include 'home.php'; ?> (obviously this wouldn't work as it is not an actual page, it is a database object. Therefore - in keeping within Litecart functions, I thought there would be a function that went something like... <?php echo $page_id['1']; ?> However I can't find any such function. https://www.litecart.net/cs/wiki/functions Any one have any clues? (P.S. reasons people may want something crazy like this... so the person operating the admin panel can change their own data on the homepage)
jackmaessen LiteCart Fan From Netherlands Member since Dec 2022 jackmaessen Feb 3 2025 09:38 AM as an alternative, maybe you could use something like this addon: https://www.litecart.net/en/addons/770/intro-frontpage It is editable in the admin and it is included on the frontpage Note: (content is saved in a .json file, so not in the DB)
tim Founder From Sweden Member since May 2013 tim Feb 3 2025 11:12 AM In php it's.. include 'path/to/script.php'; // Executes code or echo file_get_contents('path/to/document.html'); // Outputs the contents of the file