2009/12/23 haijak <[email protected]>:
> What I would basically like is to make some condition to decide if a
> section of HTML containing the page nav links should be put out.
>
> logically it would go like this:
> "If there is a page of older posts or a page of newer posts, out put
> the section containing the previous and next page links."

Is something like this what you're after, from the Connections theme:

<?php if ( $previous = $post->descend() ): ?>
<div class="previous">
  &laquo; <a href="<?php echo $previous->permalink ?>" title="<?php
echo $previous->slug ?>"><?php echo $previous->title ?></a>
</div>
<?php endif; ?>
<?php if ( $next = $post->ascend() ): ?>
<div class="next">
  <a href="<?php echo $next->permalink ?>" title="<?php echo
$next->slug ?>"><?php echo $next->title ?></a> &raquo;
</div>
<?php endif; ?>

-- 
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to