Symlink-like page type

Hi everyone,

I was wondering: what would be the feasibility of a PageType that
could act like a symbolic link? Really what I’m looking for is a page
whose context in the page tree structure would remain the same, but
its contents would come from another page (and thus always be up to
date).

Implementation-wise, I was thinking of redefining the :parts
association proxy with some behavior that not only grabs the parts of
the page, but also the ones from the page the link points to.

Anyone see any problems right off the bat with this or know of any
prior work on this topic?

Thanks,
Andrew

On Jun 7, 2007, at 5:51 PM, Andrew O’Brien wrote:

I was wondering: what would be the feasibility of a PageType that
could act like a symbolic link?

It works very well.

http://silverinsanity.com/~benji/radiant/alias_page-0.2.tar.gz

If you have any questions or bugs, e-mail me. :slight_smile:

~~ Brian

Oh, excellent – this looks like what I want (and how I was planning
on doing it).

Ouot of curiousity, was there any reason why there wasn’t a link on
Third Party Extensions page on the Radiant dev site?

Also, what’s the license? Same as Radiant (MIT)?

–Andrew

On Jun 8, 2007, at 11:02 AM, Andrew O’Brien wrote:

Ouot of curiousity, was there any reason why there wasn’t a link on
Third Party Extensions page on the Radiant dev site?

Because I forgot? I sent out a message to the list when I worked on
it but then didn’t think much of it past that.

Also, what’s the license? Same as Radiant (MIT)?

Hadn’t thought about it. shrugs We’ll call it public domain. I
should add a note to that effect.

~~ Brian

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