Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Newbie here :?

I'm in the process of working with Aurelius template and currently working through the Portfolio modification, found here: http://docs.couchcms.com/tutorials/port ... folio.html
I'm stuck! :( I believe I have inserted the text for editable parts as per the instructions but I keep getting error overtime I tried to view the page at http://www.mydomain.com/portfolio.php
ERROR! ATTRIB_NAME: Invalid char "'" (line: 12 char: 675)

I know that it is saying but I can't see what is wrong with that specific part referred to or the entire the code . Plus at the admin panel it tells me obviously no editable regions defined :( Here is the code:

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>

<cms:template title='Portfolio' clonable='1'>
              <cms:editable
              name='content'
              label='Content'
              desc='Enter description of portfolio item here'
              type='richtext' />

<cms:editable
              name='website'
              label='Website'
              desc='Enter site\'s URL here'
              type='text' >
                 <cms:editable name='group_img1' label='First Image' desc='First Image' type='group' />
                    http://nurture.world                                             
</cms:editable>
                         
<cms:editable name='group_img1 label='First Image' desc='First Image' type='group' />

<cms:editable
            name='image_1'
            label='Image 1'
            desc='Upload first image of portfolio here'
            crop='1'
            width='600'
            height='300'
            group='group_img1'
            type='image'
             
              />

<cms:editable
              name='thumb'
              label='Image Thumbnail'
              desc= 'Thumbnail of first image'
              width='223'
              height='112'
              show_preview='1'
              assoc_field='image_1'
              group='group_img1'
              type='thumbnail'
/>
   
<cms:editable
              name='image_1_title'
              label='Image Title'
              desc='Enter images\'s title here'
              group='group_img1'         
              type='text' />
                 
<cms:editable name='group_img2' label='Second Image' desc='Second Image' type='group' />
   
   
    <cms:editable
            name='image_2'
            label='Image 2'
            desc='Upload second image of portfolio here'
            crop='1'
            width='600'
            height='300'
            group='group_img2'
            type='image'
             
              />
   
    <cms:editable
              name='image_2_title'
              label='Image Title'
              desc='Enter images\'s title here'
              group='group_img2'                     
              type='text'/>
   
    <cms:editable name='group_img3' label='Third Image' desc='Third Image' type='group' />
                         
   <cms:editable
            name='image_3'
            label='Image 3'
            desc='Upload second image of portfolio here'
            crop='1'
            width='600'
            height='300'
            group='group_img3'
            type='image'
             
              />                       

    <cms:editable
              name='image_3_title'
              label='Image Title'
              desc='Enter images\'s title here'
              group='group_img3'                     
              type='text'/>
                                             
                       
</cms:template>
                         

<!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 | Portfolio >> Project Title</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>
   <script type="text/javascript" src="js/jquery.roundabout-1.0.min.js"></script>
   <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
   <script type="text/javascript" src="js/jquery.roundabout-shapes-1.1.js"></script>
   <script type="text/javascript">         
      $(document).ready(function() { //Start up our Project Preview Carosuel
         $('ul#folio_scroller').roundabout({
            easing: 'easeOutInCirc',
            shape: 'waterWheel',
            duration: 600
         });
      });
   </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" class="current"><span class="meta">Our latest work</span><br />Portfolio</a></li>
         <li><a href="about.html"><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>
         
      <!-- Catch Line and Link -->
         <h2 class="grid_12 caption clearfix">Our <span>portfolio</span>, home to our latest, and greatest work.</h2>
      
      <div class="hr grid_12 clearfix">&nbsp;</div>
      
      <!-- Column 1 / Project Information -->
      <div class="grid_4">
      <a class="meta" href="#">www.siteurlgoeshere.com</a>
      <h4 class="title">Project Name</h4>
      <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <b>Mauris vel porta erat.</b> Quisque sit amet risus at odio pellentesque sollicitudin. Proin suscipit molestie facilisis. Aenean vel massa magna. Proin nec lacinia augue. Mauris venenatis libero nec odio viverra consequat. In hac habitasse platea dictumst.</p>
         <p>Cras vestibulum lorem et dui mollis sed posuere leo semper. Integer ac ultrices neque. Cras lacinia orci a augue tempor egestas. Sed cursus, sem ut vehicula vehicula, ipsum est mattis justo, at volutpat nibh arcu sit amet risus. Vestibulum tincidunt, eros ut commodo laoreet, arcu eros ultrices nibh, ac auctor est dui vel nibh.</p>   
         <p class="clearfix">
            <a href="portfolio.html" class="button float">&lt;&lt; Back to Portfolio</a>
            <a href="#" class="button float right">Visit Site</a>
         </p>
      </div>
      
      <!-- Column 2 / Image Carosuel -->
      <div id="folio_scroller_container" class="grid_8 cleafix">
         <ul id="folio_scroller">
               <li><span>Homepage</span><a href="#"><img alt="" src="images/600x300.gif" /></a></li>
               <li><span>Content Page</span><a href="#"><img alt="" src="images/600x300.gif" /></a></li>
               <li><span>Dropdown Menu</span><a href="#"><img alt="" src="images/600x300.gif" /></a></li>
               <li><span>Comments List</span><a href="#"><img alt="" src="images/600x300.gif" /></a></li>
               <li><span>Comment Form</span><a href="#"><img alt="" src="images/600x300.gif" /></a></li>
         </ul>
      </div>
      
      <div class="hr grid_12 clearfix">&nbsp;</div>
      
      <!-- Client pickup line -->
      <h2 class="grid_12 caption">Like this project? We can do something similar for you. <a href="contact.html"><span>Get in touch...</span></a></h2>
      
      <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(); ?>


Thanks for your help!
Hi,

The problem lies in the code between lines 10 to 19 -
Code: Select all
<cms:editable
              name='website'
              label='Website'
              desc='Enter site\'s URL here'
              type='text' >
                 <cms:editable name='group_img1' label='First Image' desc='First Image' type='group' />
                    http://nurture.world                                             
</cms:editable>
                         
<cms:editable name='group_img1 label='First Image' desc='First Image' type='group' />

Two problems -
1. In the first editable region, you are trying to enclose another editable region (type 'group'). Regions cannot be nested except within type groups.

2. In the second editable region, yo are missing a closing quote.

Please use the following rectified code -
Code: Select all
    <cms:editable
                  name='website'
                  label='Website'
                  desc='Enter site\'s URL here'
                  type='text' >
                        http://nurture.world                                             
    </cms:editable>
                             
    <cms:editable name='group_img1' label='First Image' desc='First Image' type='group' />

In closing, one little suggestion -
please try making small changes at a time. For example, modify one region and then run the template to see if nothing gives.

This way, if there is a problem you'd know exactly where to look for it.

Hope it helps.
KK,

Thanks for your help! It worked! I really needed reminding about working on at one region at a time :)

Jin
3 posts Page 1 of 1