On Wed, 17 Oct 2001 15:30:48 +0200 "Tarjei Huse" <[EMAIL PROTECTED]> wrote:
> Hi, > > This has been my most hasslefree upgrade ever! Wow. Now, can someone point me to > a post that explains pagelinks? Pagelinks can be compared to symbolic links on a filesystem. In the pagelink object, you have three main fields: up, name and target * up is pointing to a page id (ie. the place where the pagelink is, for a filesystem it's the source directory) * name is the name of the link (ie. the alias of the target page) * target is the target page id (ie. the page the PL is pointing to) Let's say you have a page /source/ and a page /path/to/target/, let's define a link from source to target called 'link', you can then access the page 'target' with the path /source/link/ (this will be the same page[0] as /path/to/target/) You also have two other important fields: owner and grp * owner is the same as for any other midgard object, the group owning the link * grp is a little more complicated, it's the effective group that will be 'redirected' to the target page, a value of 0 means 'default' let's take the previous example and put 1 in the grp field, only a user from the group 1 will be able to go to the page /source/link/ You can of course create many pagelinks with the same up/name/target but only changing the grp field, and every different group will be redirected to different pages with the same url. The point is that /source/ and /path/to/target/ can be on different hosts (say my.company.com and localhost resp.) and with pagelinks you can still access a page on a protected host (localhost[1]) given the fact you have the right credentials. [0] the page could not be the same if the style of the two pages is not the same, in fact, the page /source/link/ will inherit the style of /source but with the pageelements of 'target', unles the style was defined specificaly on the 'target' page (and not on one of its parent). So you'll need to be cautious about that, it can break the design of the site. [1] or no host at all, this ensure it won't be accessible by any means. Hope this helps. David > Tarjei --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
