01-05-2012 11:13 AM
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
01-05-2012 12:35 PM
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:
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.
01-05-2012 12:06 PM
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 ?
01-05-2012 12:09 PM
I forgot to tell that
01-06-2012 04:01 AM
Actually, it's precisely this URL that my users judge too long
01-06-2012 04:03 AM
A good sample of what I want is what you have done on the Nuxeo documentation for instance where http
01-06-2012 05:13 AM
With Nuxeo IDE, there is sample that generates automatically an empty operation. But if you to do it by hand...
01-05-2012 12:35 PM
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:
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.
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.