ld Developer Od New Zealand Členem od říj 2024 ld 3 úno 2025 08:55 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 Od Netherlands Členem od pro 2022 jackmaessen 3 úno 2025 09:38 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 Od Sweden Členem od kvě 2013 tim 3 úno 2025 11:12 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