Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Working on the tutorial, I've defined the image parameters in blog.php, and inserted the show command in the appropriate place. Using the Admin Panel I've uploaded an image into http://localhost/mysite/aurelius/mods/u ... /coast.jpg. In Admin, if I click on 'View Image' it appears ok.

Refreshed everything but the image doesn't appear on the page!
To check, I've put the words "Awaiting Image" in the alt="" parameter. Those words appear in blog.php.

Help please?
Could you please post the -
1. Editable region definition
2. The part of the code in your template where you are trying to output the image.

Thanks.
Editable region definition:-
Code: Select all
   <cms:editable name='blog_image' 
      crop='1'
      width= '610'
      height='150'
      type='image'
      />

Invoked:-
Code: Select all
            <!-- Post Title -->
            <img class="thumb" src="<cms show: blog_image />" alt="Awaiting image"/>
            <!-- Post Content -->

Thanks for helping - sorry for the delay in response; been out of the office.
Thanks.

There is a syntax error in the line of code trying to display the image -
<img class="thumb" src="<cms show: blog_image />" alt="Awaiting image"/>

Following is the correct syntax -
<img class="thumb" src="<cms:show blog_image />" alt="Awaiting image"/>
All Couch tags have a <cms: followed by the tag-name without any space.

Hope this helps.
:oops:
Stupid me! Thanks very much and apologies for wasting your time!
Not a problem at all :)
6 posts Page 1 of 1