I’m not sure how to achieve the following effect.. If you look at my page http://beta.kyle2010.com, you’ll see that I have blog entries, as well as events/results on the index page. The events/results entries are organized as a single weblog with custom statuses of Upcoming or Complete. So far so good. However, when I change the status of an event from Upcoming to Complete (these are races, so I add results, and a little text), I would like that event to be reordered to appear as the first entry on the page.
Is there a way to sort my weblog so events with a status of ‘Complete’ display as the first entry?
Here’s the code I have for the index page right now.
{exp:weblog:entries weblog="Posts|Events" limit="10" status="Open|Completed|Upcoming"}
{if weblog == "Posts"}
<div class="post">
<h2><span>Blog - </span> <a href="http://{title_permalink=">{title}</a></h2>
<p> <br />
Posted by {author} on {entry_date format="%M %d %Y"} | <a href="http://{title_permalink=" class="comments">{comment_total} comments</a> | posted in {categories}{category_name}{/categories}<br />
{post_body}<br />
{if post_image}<br />
{post_image}<br />
{/if}<br />
</div><!--end post--><br />
<br />
{/if}<br />
<br />
{if weblog == "Events"}<br />
<br />
<div class="post"><br />
{if status == "Upcoming"}<br />
</p><h3>Event - <span><a href="http://{title_permalink=">{title}</a></span></h3>
<p> <strong>When:</strong> {event_date} <strong>Where:</strong> {event_location}<br />
{/if}<br />
<br />
{if status == "Completed"}<br />
</p><h3>Result - <span><a href="http://{title_permalink=">{title}</a></span></h3>
<p> <strong>When:</strong> {entry_date format="%M %d %Y"} <strong>Where:</strong> {event_location}<br />
{/if}<br />
</div><!--end post--> <br />
<br />
{/if}<br />
<br />
{/exp:weblog:entries}