Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Amit Shukla
unique url for document
10 de Setembro de 2012 22:25
Resposta

Amit Shukla

Ranking: Junior Member

Mensagens: 93

Data de entrada: 7 de Junho de 2012

Mensagens recentes

Hi all,

I need unique URL for document at the time of uploading document.

Can any body help me also the regarding flow? How the docs save in document library.

Thanks

Amit Shukla
Hitesh Methani
RE: unique url for document
10 de Setembro de 2012 23:57
Resposta

Hitesh Methani

Ranking: Regular Member

Mensagens: 171

Data de entrada: 24 de Junho de 2010

Mensagens recentes

Hello Amit,

If you are talking about generating urls at code level for documents, then you can refer fourth point in the link creating url.

Regarding your second question, docs are stored by default in data/document_library folder.

Thanks and Regards,
Hitesh Methani.
Oliver Bayer
RE: unique url for document
11 de Setembro de 2012 01:01
Resposta

Oliver Bayer

Ranking: Liferay Master

Mensagens: 883

Data de entrada: 18 de Fevereiro de 2009

Mensagens recentes

Hi Amit,

you can easily create an url for document and media entities like this:
1/documents/{groupId}/{folderId}/httpUtil.encodeURL(htmlUtil.unescape({title}))

I've put the needed parameters in brackets. If you have a dlFileEntry object you can get them from it.
HTH Oli
Amit Shukla
RE: unique url for document
13 de Setembro de 2012 04:11
Resposta

Amit Shukla

Ranking: Junior Member

Mensagens: 93

Data de entrada: 7 de Junho de 2012

Mensagens recentes

Thanks a lot Hitesh and Oliver Bayer.I got my answer
Amit Shukla
RE: unique url for document
15 de Novembro de 2012 22:23
Resposta

Amit Shukla

Ranking: Junior Member

Mensagens: 93

Data de entrada: 7 de Junho de 2012

Mensagens recentes

Hi oliver,
I got url of docs by this for my localhost.

String docurl="http://localhost:8080" + "/documents/" + groupId+"/"+folderId+"/"
+HttpUtil.getHttp().encodeURL(HtmlUtil.getHtml().unescape(title));

instead of ----http://localhost:8080" how can i get this in generic manner.

Thanks
Amit
Oliver Bayer
RE: unique url for document
16 de Novembro de 2012 01:00
Resposta

Oliver Bayer

Ranking: Liferay Master

Mensagens: 883

Data de entrada: 18 de Fevereiro de 2009

Mensagens recentes

Hi Amit,

I think you should be able to use relative urls too (without the http://localhost:8080 prefix). But if you want or have to use an absolute url for some reasons "themeDisplay.getPortalURL()" should do the trick.

Greets Oli
Amit Shukla
RE: unique url for document
20 de Novembro de 2012 23:13
Resposta

Amit Shukla

Ranking: Junior Member

Mensagens: 93

Data de entrada: 7 de Junho de 2012

Mensagens recentes

thanks a lot oliver

Amit