homepage underconstuction add-on

Re: [Maurice] homepage underconstuction add-on

By Chris - March 30, 2010

Hi Maurice,

One potentially simple solution I can think of would be to have a Single Record section with a list field for your different home page choices. You could use a PHP include to make your home page change its content based on your list field:

<?php
require_once "/my/path/to/cmsAdmin/lib/viewer_functions.php";

list($homepageRecords, ) = getRecords(array(
'tableName' => 'homepage',
));
$homepageRecord = $homepageRecords[0];

include $homepageRecord['include_file'];
?>


Does that help? Please let me know if you have any questions.
All the best,
Chris

Re: [chris] homepage underconstuction add-on

By Maurice - March 30, 2010

That is cool and simple yes.

thnx

ill see how easy our customers find it to use this solution

thnx

Maurice
-------------------------------------------

Dropmonkey.nl