Jump to content

Photoblog - cjkerr.com.au


theSeekerr
 Share

Recommended Posts

Looking good theSeekerr! I could have sworn this must be running in WordPress, as you've managed to do a great job of getting the full blog feel here. Beautiful photos you are featuring there too. Thanks for posting it, keep up the good work.

Link to comment
Share on other sites

Yeah, the blog page is very wordpress, but the feel of the site will change once I've finished my portfolio/gallery templates.

Right now the biggest issue is Related Pages - at the moment I'm populating them by hand, but that means manually updating old posts to add new related articles. At the very least, I need to devise a "linkback" system such adding an old page to the related article of a new page appends the new page to the related articles of the old page.

Link to comment
Share on other sites

That will be easy to do. Lets say you've got a field called 'related_pages' that is a multi-page reference field. Here's what you might do on your 'article' template to display them:

// get pages that this one is identifying as related
$related = $page->related_pages; 

// get other pages that are identifying this one as related, and merge them
$related->import($pages->find("related_pages=$page"));

// output the related pages
echo $related->render(); 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...