Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi all

Great CMS

I have a one page website. here what it's look like

index.php, I include many other page like home.php, menu.php, body.php ,contact.php, in the index page

I would like to have different section in couch cms it is possible.
I put <?php require_once('test/cms.php'); ?> and <?php COUCH::invoke(); ?> in every included php but does't seem to work what I want is to seperate my webpage in section so the user can modify each section.

Code: Select all
<html>
  .... meta
  .... header etc..
<body id="home" class="homepage">

    <?php include('menu.php'); ?>
    <?php include('sliders.php'); ?>

</body>
</html>


any clue on how to do this ??
Hi @tomy300 :)

I think you should find the following thread useful in creating one-page sites -
viewtopic.php?f=2&t=7731

Hope it helps.
Please feel free to let us know if something still remains unclear.
I just don't understand how to do this....

btw here a zip file of a small one website

if you can help me out I would appreciate it a lot.

Attachments

Let's start by moving all of your includes into the couch/snippets folder. The cms:embed tag will look for them in there. I created a snippets folder in the attached zip file, but you will need to move the contents of that folder into your couch/snippets folder.

Next we'll create templates for each of the different sections you want to be editable in the admin panel.

Finally, we use the cms:pages tag to find and show the appropriate information from the database on the website.

I modified your files and set up the header section with some dummy info. See if you can use that to do the rest for yourself. Let me know how it goes.

Attachments

4 posts Page 1 of 1