Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi all.
I'm having troubles with About.php, did everything as the tutorial says, but only the main_content: appears in about.php, and not both main_content and sidebar_content.

Here is the about.php code, changed and used by me:

Code: Select all
<?php require_once( 'cms/cms.php' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <title>Aurelius | About Us</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   
   <!-- Stylesheets -->
   <link rel="stylesheet" href="css/reset.css" />
   <link rel="stylesheet" href="css/styles.css" />
   
   <!-- Scripts -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
   <!--[if IE 6]>
   <script src="js/DD_belatedPNG_0.0.8a-min.js"></script>
   <script>
     /* EXAMPLE */
     DD_belatedPNG.fix('.button');
    
     /* string argument can be any CSS selector */
     /* .png_bg example is unnecessary */
     /* change it to what suits you! */
   </script>
   <![endif]-->
   
</head>

<body>

   <div id="wrapper" class="container_12 clearfix">

      <!-- Text Logo -->
      <h1 id="logo" class="grid_4">Aurelius</h1>
      
      <!-- Navigation Menu -->
      <ul id="navigation" class="grid_8">
         <li><a href="contact.html"><span class="meta">Get in touch</span><br />Contact Us</a></li>
         <li><a href="blog.html"><span class="meta">Latest news</span><br />Blog</a></li>
         <li><a href="portfolio.html"><span class="meta">Our latest work</span><br />Portfolio</a></li>
         <li><a href="about.html" class="current"><span class="meta">Who are we?</span><br />About</a></li>
         <li><a href="index.html"><span class="meta">Homepage</span><br />Home</a></li>
      </ul>
      
      <div class="hr grid_12 clearfix">&nbsp;</div>
         
      <!-- Caption Line -->
      <h2 class="grid_12 caption">Learn <span>about us</span> and what we do best.</h2>
      
      <div class="hr grid_12 clearfix">&nbsp;</div>

      <!-- Column 1 / Content -->
      <cms:editable name='main_content' type='richtext'>
      <div class="grid_8">
         <h4 class="page_title">Our mission</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p><i>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</i></p>
         <h4 class="page_title">So who are we?</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
         <h4 class="page_title">Staff</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
         <h4 class="page_title">Clients</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
         
      </div>
      </cms:editable>
      
                <!-- Column 2 / Sidebar -->
                <cms:editable name='main_content' type='richtext'>
      <div class="grid_4">
      
         <h4>Our History</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <dl class="history">
            <dt>1994</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>1996</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>2000</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>2003</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>2009</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         </dl>
      </div>
      </cms:editable>
      <div class="hr grid_12 clearfix">&nbsp;</div>
      
      <!-- Footer -->
      <p class="grid_12 footer clearfix">
         <span class="float"><b>&copy; Copyright</b> <a href="">QwibbleDesigns</a> - remove upon purchase.</span>
         <a class="float right" href="#">top</a>
      </p>
      
   </div><!--end wrapper-->

</body>
</html>
<?php COUCH::invoke(); ?>
Hi and welcome to our forums :)

If you take a closer look at the code you are using, you'll find that the editable regions that are being defined for the main content as well as the sidebar, both have the same name.
Effectively, you are defining the main content twice, the second time with the contents of the sidebar.
Code: Select all
<!-- Column 1 / Content -->
      <cms:editable name='main_content' type='richtext'>
      <div class="grid_8">
      ....
      ....
<!-- Column 2 / Sidebar -->
      <cms:editable name='main_content' type='richtext'>
      <div class="grid_4">

Simply rename the second editable region to something else, visit the page as admin and the sidebar should appear -
Code: Select all
<!-- Column 2 / Sidebar -->
      <cms:editable name='sidebar_content' type='richtext'>
      <div class="grid_4">

Let us know if this helps.
Thank you, it works now!

What about the " CouchCMS Version 1.0.1 - Evaluation Copy (29 Days remaining)", is it free or no ?
eXtremer wrote: Thank you, it works now!

What about the " CouchCMS Version 1.0.1 - Evaluation Copy (29 Days remaining)", is it free or no ?


You need to apply for the licence. This can be done by emailing them, on the main index page.
and yes its free to non-commercial sites
http://www.couchcms.com/contact/

:mrgreen:
Couch is free for non-commercial and personal sites.
If the site you are using it on falls under the aforesaid categories, please send us your domain name and we'll issue an unlimited license free of cost.
KK wrote: Couch is free for non-commercial and personal sites.
If the site you are using it on falls under the aforesaid categories, please send us your domain name and we'll issue an unlimited license free of cost.


Website ...I'm still working on it.
Thank you.
6 posts Page 1 of 1

Who is online

In total there are 15 users online :: 0 registered, 0 hidden and 15 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 15 guests