I am experimenting with how I can use the pages module to better effect and could do with some help figuring out if the following is possible.
I am trying to have a news page use the pages module for its top level page - outputting a list of article excerpts (limit 5) with pagination to see the remaining articles. I have the following code on my page:
{exp:channel:entries channel="news_articles" pagination="bottom" limit="5" dynamic="no" }
<article>
<h3>{title}</h3>
<p> {if cf_news_article_image}<br />
<figure><br />
{exp:ce_img:single src="{cf_news_article_image}" width="100"}<br />
</figure><br />
{/if}<br />
{cf_news_article_summary}<br />
<a href="http://{url_title_path=news}">Read More…</a><br />
</article></p>
<p>{paginate}<br />
Page {current_page} of {total_pages} pages {pagination_links}<br />
{/paginate}</p>
<p>{/exp:channel:entries}This works except for the pagination - which doesn’t load the next set of articles. My understanding of how the pages module works is that this would happen as you have taken the dynamic element away from segment structure. I had decided that this method would not work but then I came across this article on EE Insider:
http://eeinsider.com/articles/simplifying-how-content-works/
This article is doing exactly what I am trying to achieve but I can not get it to work - firstly it doesn’t set dynamic=“no” on the channel entries tag for the news so it can’t work, but I must be missing something.
Any help would be appreciated.