Getting started
Ben Giddings
bg-hobix at infofiend.com
Fri Sep 24 00:05:10 EDT 2004
William Morgan wrote:
> entry_footer: |
> posted by <%= weblog.authors[entry.author]['name'] %> at
> <%= entry.created.strftime( "%l:%M %p" ) %>
> <% unless entry.section == "" %>
> to <a href="<%= entry.section_link %>"><%= entry.section %></a>
> <% end %>
> |
> <% if page.prev %>
> <a href="<%= weblog.link %><%= page.prev %>">prev</a>
You can actually simplify this to <%= weblog.link + page.prev %>
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>
I poked around a bit in the source, and understand how the page objects
are created, and how their previous/next elements are assigned, but I
don't know how skel_entry is called, so I don't know what the object
passed to it is, so I don't know how to get the list of entries or
neighbors.
Sen~or _why?
Ben
More information about the Hobix-is-the-way
mailing list