Carry out the following steps:
Go back to the directory where you've created
description.txt
and create another file nameddefault.php
.Insert the content
DIV
along with some PHP code:<?php defined('C5_EXECUTE') or die('Access Denied.'); $this->inc('elements/header.php'); ?> <div id="content"> <?php $b = new Area('Main'); $b->display($c); ?> </div> <?php $this->inc('elements/footer.php'); ?>
Just like we did in the header, there's a line at the top to avoid direct calls and a few more lines of code to insert another editable area named Main
. In all the themes you can find in the marketplace there's an area called Main
. By following this rule, concrete5 makes it possible to switch between themes without losing the content.
As you can see, the creation of the last file was also quite easy. There isn't a lot left from the original HTML code. However, having a small default.php...