Foren
Category Navigator Link URL
Maximiliano Chiesa, geändert vor 11 Jahren.
Category Navigator Link URL
Junior Member Beiträge: 47 Beitrittsdatum: 20.07.12 Neueste Beiträge
Hi!
I'm creating a portlet similar to the Category Navigator from scratch.
My portlet has a list of links that change depending on the page that the user is visiting.
In the Category Navigator when you click on a link it displays all the contents of the selected category. Is there a way of getting the Category Navigator's links URLs programatically?
For example, I have a category called "Category1", so in the Category Navigator portlet I have a link named "Category1" that points to the URL:
http://localhost:8080/web/guest/home?p_p_id=122_INSTANCE_9LsGFjuPpDxt&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=5&p_r_p_564233524_resetCur=true&p_r_p_564233524_categoryId=16815
Is there a way of creating this URL knowing the CategoryId programatically?
Thanks in advance!
I'm creating a portlet similar to the Category Navigator from scratch.
My portlet has a list of links that change depending on the page that the user is visiting.
In the Category Navigator when you click on a link it displays all the contents of the selected category. Is there a way of getting the Category Navigator's links URLs programatically?
For example, I have a category called "Category1", so in the Category Navigator portlet I have a link named "Category1" that points to the URL:
http://localhost:8080/web/guest/home?p_p_id=122_INSTANCE_9LsGFjuPpDxt&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=5&p_r_p_564233524_resetCur=true&p_r_p_564233524_categoryId=16815
Is there a way of creating this URL knowing the CategoryId programatically?
Thanks in advance!
Dave Weitzel, geändert vor 11 Jahren.
RE: Category Navigator Link URL
Regular Member Beiträge: 208 Beitrittsdatum: 18.11.09 Neueste Beiträge
Isn't it just a standard portletURL (typically a renderURL) with various paramaters set (resetCur and categoryId in particular.
look in the taglib ui code for how standard navigation is handled.
Dave
look in the taglib ui code for how standard navigation is handled.
Dave