Dynamically display most recent project on projects page
Permalink
G'd evening!
I'm building a portfolio site for a graphic designer and I'm struggling to get my head around the following problem.
There's a page called 'projects' that uses a page_list block to list all projects (pages using a custom page type). Each project page has a slideshow and a short description.
On the project page I'd like to display the most recently featured project's slideshow and description. I've managed to use a page_list block to display a thumbnail link to this ('Number of pages to display: 1', 'Featured pages only.', 'Most recent first').
Instead of just a link to the project, I'd like to directly display its slideshow and description on the projects page. I've attached a wireframe to hopefully show better what I mean.
Hopefully, one of you more experienced devs can help me out. Any hints on how to best approach this?
Cheers,
B.
PS. Had a look at the "Working with Pages" documentation, but haven't found a solution yet.
Is there a way to loop through all the sub-pages of a page and then get the most recently added one?
Once I have this most recent page, can I access the blocks in it using the method described here? (http://www.concrete5recipes.com/tricks/display-blocks-from-another-area-or-page)
Really at a loss here, any pointers in the right direction are much appreciated.
I'm building a portfolio site for a graphic designer and I'm struggling to get my head around the following problem.
There's a page called 'projects' that uses a page_list block to list all projects (pages using a custom page type). Each project page has a slideshow and a short description.
On the project page I'd like to display the most recently featured project's slideshow and description. I've managed to use a page_list block to display a thumbnail link to this ('Number of pages to display: 1', 'Featured pages only.', 'Most recent first').
Instead of just a link to the project, I'd like to directly display its slideshow and description on the projects page. I've attached a wireframe to hopefully show better what I mean.
Hopefully, one of you more experienced devs can help me out. Any hints on how to best approach this?
Cheers,
B.
PS. Had a look at the "Working with Pages" documentation, but haven't found a solution yet.
Is there a way to loop through all the sub-pages of a page and then get the most recently added one?
Once I have this most recent page, can I access the blocks in it using the method described here? (http://www.concrete5recipes.com/tricks/display-blocks-from-another-area-or-page)
Really at a loss here, any pointers in the right direction are much appreciated.