Changing URL for Document or Image uploaded in LiferayChanging URL for Document or Image uploaded in Liferayhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=168030752024-03-28T23:52:28Z2024-03-28T23:52:28ZRE: Changing URL for Document or Image uploaded in LiferayAndre Kreienbringhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1199621752020-09-17T10:00:13Z2020-09-17T10:00:13ZAfter 7 years.... Now there is a feature request for this:<br /><a href="https://issues.liferay.com/browse/LPS-95217">https://issues.liferay.com/browse/LPS-95217</a>Andre Kreienbring2020-09-17T10:00:13ZRE: Changing URL for Document or Image uploaded in LiferayBart Simpsonhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=168261162012-10-02T07:10:03Z2012-10-02T07:10:03ZThis was the one I started with https://www.liferay.com/community/wiki/-/wiki/Main/FriendlyURLMapper<br /><br />Let me know if you have any questions on it.Bart Simpson2012-10-02T07:10:03ZRE: Changing URL for Document or Image uploaded in LiferayRaghu khttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=168079832012-10-01T14:01:52Z2012-10-01T14:01:52ZHarish and Paul,<br />Thanks for your reply.<br />Paul,<br />Can you please provide more information or links on friendly routes(who to write and configure them). I have gone through link which i gave in my 1st post. But I dint understand it. I am totally new to Liferay. Can you please help me out.Raghu k2012-10-01T14:01:52ZRE: Changing URL for Document or Image uploaded in LiferayBart Simpsonhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=168055062012-10-01T12:30:39Z2012-10-01T12:30:39Z<div class="quote-title">Raghu k:</div><blockquote><br />1. What does this random value indicate? is it some ID kind of thing?<br /></blockquote><br />It is the uuid_ for this DLFileEntry to uniquely identify it.<br /><div class="quote-title">Raghu k:</div><blockquote>2.Is there any way to change this URL so that we can refer it easily?</blockquote><br />Yes, by default you should be able to able to get the file / document from Document library using the friendly routes. However the portlet should be able to understand those routes. Eg. if you use Document Library display portlet you can create friendly url's based on the routes in file document-library-display-friendly-url-routes.xml<br />Otherwise for your own custom portlet you'll have to create new custom routes and provide the implementation to retrieve the document<br /><div class="quote-title">Raghu k:</div><blockquote>3.If it is ID, can we create our own ID in its place just like the way we create custom ID for web content?<br /><br />Please provide your suggestions. I am using LR 6.1.</blockquote><br />That would be inside the Document Library portlet and you may have to extend the portlet , which is not advisable.Bart Simpson2012-10-01T12:30:39ZRE: Changing URL for Document or Image uploaded in LiferayHarish Kumarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=168051472012-10-01T12:03:35Z2012-10-01T12:03:35Z<html><head></head><body><pre><code>3acfda89-f65c-424c-9ca0-25322abcfdf8</code></pre> is the uuid and you can find all the such info in dlfileentry table.</body></html>Harish Kumar2012-10-01T12:03:35ZRE: Changing URL for Document or Image uploaded in LiferayRaghu khttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=168031972012-10-01T11:06:39Z2012-10-01T11:06:39ZI have gone thru below link. But I am not able to understand anything.<br />http://www.liferay.com/web/connor.mckay/blog/-/blogs/5262286Raghu k2012-10-01T11:06:39ZChanging URL for Document or Image uploaded in LiferayRaghu khttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=168030742012-10-01T11:02:32Z2012-10-01T11:02:32ZHi all,<br />When we create a document or image in liferay, that will generate a URL for it. Whenever we want use that document or image, we have to refer that document.image with that URL. But this URL will have some random values. <br />Eg : http://localhost:8080/documents/16201/3acfda89-f65c-424c-9ca0-25322abcfdf8<br /><br />In above link 16201 is my site ID. Value which is present after that is rando