Jump to content
theSeekerr

Photoblog - cjkerr.com.au

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.

Share this post


Link to post
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.

Share this post


Link to post
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(); 

Share this post


Link to post
Share on other sites

Good to see another Australian. Nice work.

(I'm also working through how to create a blog just now)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...