Hi,
I have two news articles with titles, date and summary to display in a sidebar. When the user clicks on this they are taken to the full article...standard stuff.
I have set up my chunk like this:
<div class="news">
<div class="date">
<p><span>14</span>
AUG</p>
</div>
<div class="article">
<p><a href="[~[+id+]~]">[+pagetitle+]</a>
[+introtext+]</p>
</div>
</div>
...but how do i replace the
<p><span>14</span><br />AUG</p>
so that it’s dynamically generated.
My other issue is that when the actual ’News’ page is displayed...
[!Ditto? &tpl=`articlePreview` &display=`all`!]
...it displays exctly the same as it does on the sidebar (obviously) but i don’t want the width constrained as it is in the sidebar, instead i’d just like the news items to be listed and taking up the full width of the content area
Hope that makes sense.
Thanks for any help
J