|
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 |
|
|
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. |
|
|
|
|
|
If you click on the permalink you must have a "tiny url" generated... You have something like:
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
(Jan 05 '12 at 17:09)
bjalon ♦♦
Actually, it's precisely this URL that my users judge too long :). Thanks for the explanation then.
(Jan 06 '12 at 09:01)
PomCompot
A good sample of what I want is what you have done on the Nuxeo documentation for instance where http://doc.nuxeo.com/x/7QAz stands for http://doc.nuxeo.com/display/NXDOC/Contributing+an+Operation.
(Jan 06 '12 at 09:03)
PomCompot
With Nuxeo IDE, there is sample that generates automatically an empty operation. But if you to do it by hand... :D
(Jan 06 '12 at 10:13)
bjalon ♦♦
|
|