Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hello, I have tired to show "Latest News thumb" from my blog. I want to when I write my blog and put an image, I want it to come to my Latest news box.

I can see my thumb in the blog, but I want too see the thumb in my index.php site. I can already see the latest news with text only right now, thanks.
Hi,

If the thumb image is an editable region of type 'image' or 'thumbnail', you can display it anywhere (which includes index.php as you desire) just the way you are displaying the text fields i.e. using cms:show e.g. as follows -
Code: Select all
<cms:pages masterpage='news.php' limit='1'>
    <img src="<cms:show whatever_thumb_name />" />
</cms:pages>

Any problem with this approach?
KK wrote: Hi,

If the thumb image is an editable region of type 'image' or 'thumbnail', you can display it anywhere (which includes index.php as you desire) just the way you are displaying the text fields i.e. using cms:show e.g. as follows -
Code: Select all
<cms:pages masterpage='news.php' limit='1'>
    <img src="<cms:show whatever_thumb_name />" />
</cms:pages>

Any problem with this approach?


Ohh thanks that work! Haha, sometimes it's so easy, but I don't find it out.
3 posts Page 1 of 1