Sort Albums and zen Pages together

Hi,

I have a site that lists all the albums in one long expanding list. Almost like a blog.

We now need to add some new zen page content and I would like to be able to list all the albums and all the pages together in one list, sorted by date (rather than pages first then albums).

Is this possible?

Comments

  • Yes, of course. You would just add to your pages list the album list. You can get the list of pages by the `getPages()` function.
  • cool, thanks!

    so you mean I would create a separate array with getPages() and a getAlbums() (not sure what the equivalent would be) and then sort it my way?

    can I then use a ready template function like a next_album() type thing or do I need to do it another way?

    sorry, I've been trying to figure it out from the docos but I feel I'm going the long way round.
  • acrylian Administrator, Developer
    You can built your own menu using these two function but you can really sort in the way of the admin drag and drop of course.

    You can't use next_album for this. You will have to work with the object model framework. Please see the tutorials and the documentation about that.
Sign In or Register to comment.