publicb
publicb

Reputation: 1

Display most recent project in concrete5

I'm building a portfolio site for a graphic designer. The functionality is based on the portfolio in the Elemental theme (page list with thumbnails & page with slideshow and description for each project).

On the Projects page itself I would like to display the slide show and description of the most recent project, along with a page_list in a sidebar.

Here's how my project pages look like and also what I would like the /projects page to look like:

enter image description here

Can I programmatically access the slideshow and description of the most recently added project? Or can I dynamically link to the most recent project's page from the main navigation? How would you approach this?

Upvotes: 0

Views: 65

Answers (1)

sandeep
sandeep

Reputation: 539

as per your desc. it seams that you want that you want to show most recent project or article to previous . so i think you just need to 'ORDER BY ID DESC' in your selct query. eg SELECT * FROM table_name ORDER BY id DESC

best of luck.. :)

Upvotes: 0

Related Questions