Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Hide Parameters in Friendly URL
Hi Guys ,
While working with friendly URL how can we hide parameters which are using in renderURL , we cannot use <ignored-parameter> , because I want to use those Parameters in Controller for further activity
While working with friendly URL how can we hide parameters which are using in renderURL , we cannot use <ignored-parameter> , because I want to use those Parameters in Controller for further activity
Hi guys , anyone having idea on it ?
implicit-parameter?
See https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/creating-friendly-urls
See https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/creating-friendly-urls
Hi Russel ,
Thanks for valuable suggestion .
As per Liferay Document -
Use <implicit-parameter>tags to define parameters that are always the same for the URL. For example, for a render URL, you can be certain that the p_p_lifecycle parameter is always 0.
so , we cannot use implicit parameters to our generated parameters .
you are having any other approach ?
Thanks & Regards,
Pradip
Thanks for valuable suggestion .
As per Liferay Document -
Use <implicit-parameter>tags to define parameters that are always the same for the URL. For example, for a render URL, you can be certain that the p_p_lifecycle parameter is always 0.
so , we cannot use implicit parameters to our generated parameters .
you are having any other approach ?
Thanks & Regards,
Pradip
I have very little experience with Friendly URLs, so these are just random thoughts popping into my head:
In your controller, is there a way to get the URL as it would appear before processing by the Friendly URL service?
So you could ignore the parameter in your friendly URL but still get it otherwise? Sorry, my ignorance is likely showing here.
In your controller, is there a way to get the URL as it would appear before processing by the Friendly URL service?
So you could ignore the parameter in your friendly URL but still get it otherwise? Sorry, my ignorance is likely showing here.
Hi Russell ,
again thanks for suggestion ..
I tried to get the original URL through themeDisplay obj. , but it gives friendly URL, so this approach not worked for us .
You are having any other solution ?
Thanks & Regards,
Pradip
again thanks for suggestion ..
I tried to get the original URL through themeDisplay obj. , but it gives friendly URL, so this approach not worked for us .
You are having any other solution ?
Thanks & Regards,
Pradip
Another guess: What about the asset renderer getters?
Hi Russell ,
Thanks for suggestion .
I am not aware of asset renderer getters concepts .
But 1 good thing I am getting now , that I am sharing here ,
If I am putting my params in generated-parameter without defining them on pattern , I am getting those values in Controller .
so , I think using <generated-parameter> we will get our result .
But in another portlet , this approach not worked , I am checking now . If I got any solution definately I will share the answer
Thanks & Regards,
Pradip
Thanks for suggestion .
I am not aware of asset renderer getters concepts .
But 1 good thing I am getting now , that I am sharing here ,
If I am putting my params in generated-parameter without defining them on pattern , I am getting those values in Controller .
so , I think using <generated-parameter> we will get our result .
But in another portlet , this approach not worked , I am checking now . If I got any solution definately I will share the answer
Thanks & Regards,
Pradip
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™