by
KK » Sun Jan 02, 2011 2:11 am
Hi Alex,
Your code is behaving exactly as expected.
The following line of your code creates an editable region
and also outputs whatever value is contained within the editable region -
- Code: Select all
<cms:editable name='webdesign_image' label='Web Design Image' height="220px" width="220px" type='image' group='webdesign_sec'/>
While the following code simply outputs whatever value is contained within the editable region.
- Code: Select all
<cms:show webdesign_image />
So effectively, you are outputting the image's path (webdesign_image editable region's value) twice.
The following is the correct way -
- Code: Select all
<img src="<cms:editable name='webdesign_image' label='Web Design Image' height="220px" width="220px" type='image' group='webdesign_sec'/>" />
where we are creating the region as well as using the output of the editable region as the src of the img tag.