Eminos Reply #1, 1 year ago
Hi,
I need to make a pretty ordinary list of news, I hope you pros can help me with.
It should look like this:
It should group by publishedon Year AND "subgroup" by publishedon Month. All news articles are under one resource parent.
I looked at Archivist, but it doesn't seem to give me a lot of options.
Is it possible to use getResources or do I have to write my own snippet?
Grateful for help.
/E
I need to make a pretty ordinary list of news, I hope you pros can help me with.
It should look like this:
<ul>
<li>2011
<ul>
<li>May
<ul>
<li><h2>News heading</h2><p>News content</p></li>
<li><h2>News heading</h2><p>News content</p></li>
</ul>
</li>
<li>April
<ul>
<li><h2>News heading</h2><p>News content</p></li>
<li><h2>News heading</h2><p>News content</p></li>
</ul>
</li>
</ul>
<li>2010
<ul>
<li>May
<ul>
<li><h2>News heading</h2><p>News content</p></li>
<li><h2>News heading</h2><p>News content</p></li>
</ul>
</li>
<li>April
<ul>
<li><h2>News heading</h2><p>News content</p></li>
<li><h2>News heading</h2><p>News content</p></li>
</ul>
</li>
</ul>
</ul>
It should group by publishedon Year AND "subgroup" by publishedon Month. All news articles are under one resource parent.
I looked at Archivist, but it doesn't seem to give me a lot of options.
Is it possible to use getResources or do I have to write my own snippet?
Grateful for help.
/E