The code above does not work. The correct one is this:
<% page = tag.locals.page
parent = page.parent
siblings = parent.children
siblings.each do |sibling|
if sibling != page
<%= sibling.slug %>
There is a bug (feature?) in the current version of the back door
extension that prevents the expansion of Radius tags enclosed inside
in tags. So putting a <r:link> inside the ‘if’ above won’t work
expected. I will take a look to this and update the extension.
The solution given by Sean is much cleaner.
One thing i miss from Radiant is an easy way to make it "more
programmable" without resorting to extensions or to ugly code inside
/ tags. Maybe it’s time for a revamp of the back door