homepage underconstuction add-on

By Maurice - March 28, 2010

Hi IT,

just a wish for a add-on we would like a under construction add-on we would want to select a page to be a the temp homepage i would like to be able to select from 3 or 4 pages to be my home page for instance

a. under construction
b. A donation page for a good cause lets say Haiti
c. temp marketing page
d. temp holiday page (happy Christmas or Eastern)

just a thought.

Hope some one can help.

Greetz Maurice
-------------------------------------------

Dropmonkey.nl

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