cancel
Showing results for 
Search instead for 
Did you mean: 

Use of short URL

PomCompot_
Confirmed Champ
Confirmed Champ

Hi,

Currently, in Nuxeo, the permalink to a doc is quite long, making unconvenient to send it by mail. Is there any way to get some kind of tiny URL instead of the default one? If not, would it be difficult to implement it?

Thanks in advance.

Stéphane

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

If you need that we create a service that generate a tinier URL, there will be a "small" work if you are a good java developer.

First you need to create a Nuxeo Bundle. Nuxeo IDE provide a sample project creation and a one click Operation Creation. Next you need to create an Operation that takes a document as entry and:

  • create a tinyURL stored somewhere (repository/docId/view <=> idForTinyURL) and return void but put the tinyURL into the context.
  • or if the tiny URL already exists our directly the tinyURL into the context.

Nuxeo IDE provide a way to create an Operation template.

The binding between tinyURL and the document can be stored into a directory for instance.

Then you create a codec into your project - as Nuxeo do for the nxpath and nxdoc - that uses the operation you have created. You can look the codec generation here, I think. And How to call an operation chain here.

You need a little work and some java skills. If you want to contribute it you are welcome. Maybe Nuxeo will work on that, but no customer asked for it. If you really need this feature, you can contact us.

Regards.

View answer in original post

6 REPLIES 6

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

If you click on the permalink you must have a "tiny url" generated... You have something like:

http://yourIP/nuxeo/nxdoc/default/803cafc0-3fb8-47ee-a595-0410f3496f51/view_documents

I think we can make better... Maybe you can remove the view_documents part with another codec that will always use the view_documents xhtml as main page.

But I think it can be enough for you... No ?

I forgot to tell that

Actually, it's precisely this URL that my users judge too long

A good sample of what I want is what you have done on the Nuxeo documentation for instance where http

With Nuxeo IDE, there is sample that generates automatically an empty operation. But if you to do it by hand...

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

If you need that we create a service that generate a tinier URL, there will be a "small" work if you are a good java developer.

First you need to create a Nuxeo Bundle. Nuxeo IDE provide a sample project creation and a one click Operation Creation. Next you need to create an Operation that takes a document as entry and:

  • create a tinyURL stored somewhere (repository/docId/view <=> idForTinyURL) and return void but put the tinyURL into the context.
  • or if the tiny URL already exists our directly the tinyURL into the context.

Nuxeo IDE provide a way to create an Operation template.

The binding between tinyURL and the document can be stored into a directory for instance.

Then you create a codec into your project - as Nuxeo do for the nxpath and nxdoc - that uses the operation you have created. You can look the codec generation here, I think. And How to call an operation chain here.

You need a little work and some java skills. If you want to contribute it you are welcome. Maybe Nuxeo will work on that, but no customer asked for it. If you really need this feature, you can contact us.

Regards.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.