On my site http://www.rabbeltje.nl i show one entry per page, and on the side there are pictures from other entries. Preferably, i'd like that to be entries from the same category. The way i achieved the current results is using a different subweblog on the page, in a sidebar (and the bonusfield-extensions to associate an image with each entry).
- Code: Select all
<div id="content">
<div id="left">
<div id="intro">
<h2>[[ title ]]</h2>
<div class="gallery">
[[gallery popup="fancybox"]]
<a href='%imageurl%%filename%' class="fancybox" title="%title%" rel="gallery-%uid%" >
<img src="%pivotxurl%includes/timthumb.php?src=%filename%&w=106&h=80&zc=1" alt="%alttext%" />
</a>
[[/gallery]]
</div>
[[ introduction ]]
[[ body ]]
</div>
</div>
<div id="right">
<div id="latest">
<h2>Andere taarten</h2>
<!-- begin of weblog 'random' -->
[[ subweblog name="random" order="random"]][[ literal ]]
<div class="random-entry">
<a href="[[ link hrefonly=1 ]]">
[[ if $entry.extrafields.foto ]]
[[ image file=$entry.extrafields.foto alt=$entry.extrafields.description class="latestfoto" ]]
[[ else ]]
<h3>[[title]]</h3>
[[ /if ]]</a>
</div>
[[ /literal ]][[ /subweblog ]]
<!-- end of weblog 'random' -->
</div>
[[tagcloud]]
</div>
</div>
This is part of the code. So basically what i want it to do is only display entries in my 'random'-subweblog from the category that is in my intro-div. Is there any way i can do this..?
edit: look at one of the entry-pages, like http://www.rabbeltje.nl/?e=186 . The frontpage works just as it should
