Hey all -
I have a corporate timeline page (here it is in development:
It is based on this general data structure:
<h1 class="dates_toggle">2003</h1>
div class="date_content">
<ul>
<li><a href="#">This is one line</a></li>
<li><a href="#">This is another line</a></li>
<li><a href="#">This is one more line</a></li>
<li>This is one link</li>
</ul>
</div>
Here is my question -
I want to make this nice and dynamic, so I will make a weblog called “events” that takes a title and an image to replace to the right. It also needs to be associated with a year. I’d like to make a “years” weblog and set up an association.
I don’t know how to do the scripting - sort of something like this algorithm (in fake code!!) -
{exp:weblog:entries weblog="years" sort="desc"}
<h1 class="dates_toggle">{title}</h1> <-- this would be the year name
<div class="date_content">
<ul>
{exp:weblog:entries weblog="events"}
[and have some reverse-related entries thing here]
{/exp:weblog:entries}
</ul>
</div>
{/exp:weblog:entries}
I know this won’t work. What I want is to loop through one weblog and also use it as a related entry in another. Is this possible? I know I can do it without automagic scaling. I’d like to be able to simply add another “year” to the “year” weblog and the page will automatically take on another section.
Make sense?
Thanks!
