Getting started
William Morgan
wmorgan-hobix-is-the-way at masanjin.net
Fri Sep 24 07:50:53 EDT 2004
Excerpts from Ben Giddings's mail of 23 Sep 2004 (EDT):
> You can actually simplify this to <%= weblog.link + page.prev %>
Oh right, thanks! Silly me.
> What I'm wondering is how hard it would be to have page.prev and
> page.next be something other than simply URLs. It would be great if
> you could say:
>
> <a href="<%= page.prev.link %>"><%= page.prev.title %></a>
That would be very cool. I'd love to be able to do that too.
Unfortunately Hobix's entry index, which is what skel_entry has
immediate access to, only stores the path and the modification time of
each entry.
Two solutions that come to mind are a) explicitly load the prev and next
entries by calling load_and_validate_entry within skel_entry (probably a
bad idea, for a variety of reasons); or b) extend the index to include
the title field (probably tricky).
I'd like to see _why's thoughts on this too. There's at least one other
field I wouldn't mind seeing in the index.
--
William <wmorgan-hobix-is-the-way at masanjin.net>
More information about the Hobix-is-the-way
mailing list