Quote from: Darragh23 at Jan 22, 2008, 10:25 AM
Yeah thanks that solves the problem with the links but now how can I display three different images for each story.Its just going to be a small thumbnail to accompany the text. Heres the bit of code with the image code palced in as well.
</br><h4><strong>
[+title+]
</h4></strong>
<p>
[+introtext+]
<img align="left" alt="Image1" height="184" src="assets/images/42-15868234b.jpg" width="152" />
(<a href="[~[+id+]~]">..read more</a>)
</p>
Any ideas??
I believe you should put your above code as chunk, then in the Document page (where you want to show this three news listing), add a Ditto calls and use that chunk for tpl.
By the way, you should wrap the <h4><strong>[+title+]</strong></h4>, and there is no
</br>, it should be self closing like so
.
For best practise, it’s better not to use break to gain vertical spacing. Use padding(s) (top or bottom) instead, and declare it in your CSS. You can also declare ’font-weight:bold’ for h4 in your CSS, this way you don’t need to use <strong>. All headings by default are bolded, so unless you declare ’font-weight: normal’ somewhere for your h1 - h6 headings, you don’t need to add ’strong’.