If you are having trouble with the blogtags extension, you could
try the sibling tags extension instead. It basically does the same
thing, except the tags are namespaced as <r:siblings:next/previous>.
It also offers a few extra options, like siblings:each/each_before/
each_after, as well as a bunch of conditional tags.
Also, Jim Gay's blog extension includes sibling-tags, as well as
providing additional tags for authors, so you might want to have a
look at that.
On 7 Dec 2008, at 20:30, Anton J Aylward wrote:
john said the following on 12/07/2008 02:45 PM:
On 2008/12/07, at 12:41, Anton J Aylward wrote:
I'm trying to use the Next/Previous mechanism
I have in the layout for the articles this in the sidebar
Prev: <r:previous><r:link/></r:previous> <br/>
Next: <r:next><r:link/></r:next> <br/>
That's fine, up to a point.
I have some articles that are not yet published - hidden.
They appear as next/previous
and when the link is clicked I get the "file not found" message.
Same if the next/prv is "draft" or "reviewed".
Is there something that should be a wrapper here that limits the
Becuase I don't think it should be behaving like this and there
doens't seem to any contextual help for them.
(Nor does 'blog' in the help search turn up anything.)
Not sure about the problem there, but you might want to have a look
the blog_tags extension, it adds a few handy tags, next/previous
among those (and if I recall properly from the last time I used it,
only considers published pages).
Ah, John, I have that installed. I have read the examples in the
README.markup and that's where I got that simple, reduced example I
which failed as I described.
I looked at the code in vendor/extensions/blog_tags/lib/blog_tags.rb
and I didn't see anything which constrained the set of siblings to be
ones that were published.
You should not ask yourself what policies to write but what you need
control. If you begin with a list of policys, you need to adapt the
reality to the list. The risk is that you create a false sense of
control of security. -- Jakob Fredriksson
Radiant mailing list
Radiant mailing list