Slug hierarchy?

Hello,
Possibly a stupid question, but here we go:

Can you organize slugs hierarchically? One alpha-slug to rule them
all? Militant slugs with religious leaders?

No I mean something like this:

Home (/)

  • about (/about)
  • animals (/animals)
    • about (/animals/about)
  • plants (/plants)
    • plants (/plants/about)

When I try to add a child to “animals” and give it the slug “about” I
get a 404 when i go to /animals/about

Do slugs have to be unique?

How can I fix this?

Regards,
Martin O.

On 3/6/07, Martin O. [email protected] wrote:

Home (/)

  • about (/about)
  • animals (/animals)
    • about (/animals/about)
  • plants (/plants)
    • plants (/plants/about)

This is what Radiant is all about.

When I try to add a child to “animals” and give it the slug “about” I

get a 404 when i go to /animals/about

Do the tests pass for you? Does the “animals” page have the slug set as
“animals”? You shouldn’t be getting a 404

Do slugs have to be unique?

Only if they are siblings. Your setup is perfectly fine.

Hello,
I figured it out and kind of solved it. The problem was that the “/
animals” page was an Archive, which meant that the slug became
“2007/3/6/about” - which is fine. I can hide the post, and link to it
using its “date-slug”.

This is the result:

http://smpl.se/bath/

Radiant is soo cool. Regards /Martin

On 3/6/07, Martin O. [email protected] wrote:

I figured it out and kind of solved it. The problem was that the “/
animals” page was an Archive, which meant that the slug became
“2007/3/6/about” - which is fine.

Why is it an Archive? “animals/about” was much nicer!

Archive usually makes sense when there are a lot of posts (like on a
blog).

Yeah,
The pages “animals” and “plants” are project blogs, so they’ll have
lots of posts.
/Martin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs