Hi Kurtulus,

Such a feature could be easily implemented if you really want it.

One way of doing it would be to just use an object where you store an
Unique ID, then add an button to the UI (docextra section for instance),
named something like "Get Permalink", that generates the Unique ID and
stores it in the current page. The permalink service (a wiki page) will
accept Unique IDs, retrieve the document that corresponds to that unique id
and redirect the request to it. No matter if the document is renamed or
moved to another space, as long as the object remains in the page, the
permalink will work.

So, you`d access something like
http://my.domain/xwiki/bin/view/XWiki/Permalink?uid=123ABC234DEF and you`ll
be redirected to
http://my.domain/xwiki/bin/view/SomeSpace/SomePageThatYouWantedToShareWithYourFirend
.

Pretty easy to do. We`d love to have such a contribution among the existing
extensions from you or anyone else interested.

Cheers,
Eduard


On Wed, Feb 26, 2014 at 3:23 PM, Jeremie BOUSQUET <
jeremie.bousq...@gmail.com> wrote:

> 2014-02-26 12:13 GMT+01:00 vinc...@massol.net <vinc...@massol.net>:
>
> >
> >
> >
> >
> > On 25 Feb 2014 at 18:58:00, 114 (ad...@114hareketi.org(mailto:
> > ad...@114hareketi.org)) wrote:
> >
> > > It's a good idea to include such information in an ID but lack of
> > sequential
> > > primary key for each page on the database is a design weakness I think.
> >
> > I agree that offering a permalink for pages is important but this may not
> > need a sequential id in DB.
> >
>
> As pages have versions, you could use any invariant from very first version
> of page to build a unique ID I suppose (like, hash of content).
> Question also is, would you want to have just permalink of a page (ie, last
> version), and/or permalinks on a specific version of a page.
>
>
> >
> > > Will it be included on version 6.0? I hope so.
> >
> > In 6.0 I highly doubt it since I don't know anyone working on this.
> Unless
> > you provide a nice Pull Request for this! :)
> >
> > For 6.x, maybe we'll be able to implement the "follow rename" feature.
> > However, changing the DB structure has not been discussed and is not
> > planned so far.
> >
> > Thanks
> > -Vincent
> >
> > [snip]
> >
> >
> > _______________________________________________
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to