Forum for discussing general topics related to Couch.
9 posts Page 1 of 1
Hi Guys,

I can't seem to have some of my images appear on couch, need help!

This is just a simple <img src='images/voice.png'> just to add design of my webpage but I only get broken images as a result. There is no upload just a simple image addition in the design.
brucewayne wrote: Hi Guys,

I can't seem to have some of my images appear on couch, need help!

This is just a simple <img src='images/voice.png'> just to add design of my webpage but I only get broken images as a result. There is no upload just a simple image addition in the design.


Hi Bro!

Lemme try to help you.

Lets say you have an editable region image type on a template name "something.php" :
<cms:editable
name='an_image'
label='An Image'
type='image'
/>


To show image that you upload, you can use :
<img src="<cms:show an_image />" />



Try it, and lemme know if it work.

Thx!
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
The problem I have see is that my client will be able to see what's going on with the design and I don't want to add confusion I just want my client to edit the content part.

I need to add the banner design of my webpage, buttons and footer designs. Is there any way this line "<img src='images/voice.png'>" can be converted to show in couch?
brucewayne wrote: The problem I have see is that my client will be able to see what's going on with the design and I don't want to add confusion I just want my client to edit the content part.

I need to add the banner design of my webpage, buttons and footer designs. Is there any way this line "<img src='images/voice.png'>" can be converted to show in couch?


So, you want a static image that unmanagable from Couch backend? (CMIIW)


If yes, You can Try this bro :
Code wrote: <img src=<cms:show k_site_link />images/voice.png>



If your site link is : "http://your-web.com/", the tag "<cms:show k_site_link />" will generate your exact site address. So when you put it like code above, will generate :
Code wrote: <img src="http://your-web.com/images/voice.png">




Do you use pretty url that managed by Couch?
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
No, Right now I'm just running the site locally, XAMPP. I need to test it before releasing it.
brucewayne wrote: No, Right now I'm just running the site locally, XAMPP. I need to test it before releasing it.


Can you share your source code that you want to show the image?

Thx!
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
<div id="label">

<img src="images/voice.png">// this right here is what i'm having problem with

<div id="ptext">

<h1>CALL US!</h1>

</div>

</div>
brucewayne wrote: <div id="label">

<img src="images/voice.png">// this right here is what i'm having problem with

<div id="ptext">

<h1>CALL US!</h1>

</div>

</div>


Thx Bro!

Please make sure your Couch folder is inside your site root.

Is your site folder structure looks like this?
Code: Select all
-couch

-css
--style.css

-js
--script.js

-images
--voice.png

-index.php


If yes, and the "voice.png" exist inside "images" folder, and you not enabling couch pretty url, it should be work with :
Code: Select all
<div id="label">

<img src="images/voice.png">// this right here is what i'm having problem with

<div id="ptext">

<h1>CALL US!</h1>

</div>

</div>


Or, if you enabling couch pretty url, you need to modify your code like this :
Code: Select all
<div id="label">

<img src="<cms:show k_site_link />images/voice.png">// this right here is what i'm having problem with

<div id="ptext">

<h1>CALL US!</h1>

</div>

</div>
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
Hey Man!

I was able to solve the problem, it was actually a Permission Issue that's why it didn't work.

Appreciate you Help!
9 posts Page 1 of 1
cron