Topic: I need help!

Good morning!

I need your help, I just installed CuteNews on my website and it is really great but I have a problem. https://cutephp.com/forum/style_emoticons/default/unsure.gif

I need to put images into a template label.

Can you help? https://cutephp.com/forum/style_emoticons/default/blink.gif



To clarify ...

This is my template and I need to put the image where it says {IMAGEEEEEE}:

<div style="top:560px; width:730px; height:250px; border:1px solid #808080; float:left;">
<div style="width:150px; height:150px; border:1px solid #808080; float:left; margin-top:30px; margin-left:5px;">
{IMAGEEEEEEEE}
</div>
<div style="width:500px; height:30px; border:0px solid #808080; float:left; margin-top:30px; margin-left:30px;">
<h1> {title} </h1>
</div>
<div style="width:500px; text-align:justify; height:140px; border:0px solid #808080; float:left; margin-top:5px; margin-left:30px;">
<p>{short-story}</p>
</div>

<div style="width:70px; height:20px; border:0px solid #808080; float:right; margin-right:25px;">
<p><font size="3">[link]Leer más[/link]</font></p>
</div>
<div style="width:150px; height:20px; border:0px solid #808080; float:right;">
<p><em>posted on {date} </em></p>
</div>
</div>


The problem is that when I create a new news no way to put an image and placed in {IMAGEEEEE}

Is there a plugin that implements it?

I need it as in the {title} that when you put the title in the field when you create a new word is placed directly on the label.

Thank you,
regards  https://cutephp.com/forum/style_emoticons/default/rolleyes.gif

2 (edited by 2013-06-11 07:35:56)

Re: I need help!

1.) Options > Additional fields: Create new field "image"

2.) Options > Edit Templates: Add tag {image} where you want. E.g:

[img]{image}[/img]

In the Edit News and Add News modules, a link under "Title" appears saying "Additional fields." Click on it to display the new image field.

Unfortunately, it is currently impossible to show the image field immediately (without the "Additional fields" link), but I'm sure that's close enough. ^^

Edit: As FUNimations kindly pointed out in the post below, adding the full path to the image in the templates will solve a lot of potential path problems. Something like the code below should do the trick:

[img]http://example.org/cutenews/uploads/{image}[/img]

Re: I need help!

Or the problem is as easy as, use using a correct path.
If you're images are located at www.domain.com/images/myimage.jpg
you would use
[img]/images/myimage.jpg[/img]