Foros de discusión

Asset publisher to display articles in another page

Muhammed asma khanam, modificado hace 14 años.

Asset publisher to display articles in another page

New Member Mensajes: 17 Fecha de incorporación: 17/11/09 Mensajes recientes
Hi,
I want to make Asset Publisher to display articles in another page. when i click on it it should display the article in new page. please help in this regard. suggestions are most welcome.thanks in advance
thumbnail
Vidya Sagar Padigela, modificado hace 14 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 49 Fecha de incorporación: 20/05/08 Mensajes recientes
Hi,

In order to view the content of asset publisher in another page without code level changes you can do it using the following steps.

1. Create a child page as a copy under the existing asset publisher page
2. Go to the page where asset publisher is displayed.
3. Choose look and feel of the asset publisher portlet.
4. Find the drop down list option "Link Portlet URLs to Page" and select the child page that you created and click save.
5. Next click on the hyper links of the asset publisher and you should be able to see the content in another page.

Hope that should help.

Thanks,
Sagar
Boen Liem, modificado hace 14 años.

RE: Asset publisher to display articles in another page

New Member Mensaje: 1 Fecha de incorporación: 26/01/10 Mensajes recientes
Hi Sagar,

How do I configure the 2nd page to display the article that I chose on the 1st page?
I can set it to 1 article and full content, but it displays the fist in the list and not the one I want.

Thanks.
Boen
thumbnail
Vidya Sagar Padigela, modificado hace 14 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 49 Fecha de incorporación: 20/05/08 Mensajes recientes
Hi Boen,

Since we did the copy of the page the new page which we created will holds the functionality the parent page. Ideally whatever we configured in the parent page is inherited into the child page. Once you followed the steps that I mentioned and click on the parent article of asset publisher you can view the content in the child page also you need to tweak the page by adding/modifying the layout and portlets that you are desired.

Thanks,
Sagar
thumbnail
charles de courval, modificado hace 13 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 55 Fecha de incorporación: 31/07/10 Mensajes recientes
Hi Sagar,

How could I achieve the following. On my home page I have 2 list (using the asset publisher): Latest Recipe and Most Popular recipes. These 2 lists could also be on 2 different page. When I click on an item of on of the list, I get redirected to a third page called recipe_detail.

I am asking for to much?

cheers,
Charles
thumbnail
Philipp Michael, modificado hace 13 años.

RE: Asset publisher to display articles in another page

New Member Mensajes: 22 Fecha de incorporación: 19/01/11 Mensajes recientes
Hi all,

I tried this solution and it works quite well. But what about the back link on the child page: Since I configured the asset publisher to display the content in full view, this link isn't necessary. When you click on it, you get the list view of the asset publisher which isn't expedient on this page, because the user expects to get back to the parent page. Maybe I should hide it with CSS but i'm wondering, if there is a way to configure the back link, to work as expected. Any idea?
thumbnail
Jacques Traore, modificado hace 11 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 49 Fecha de incorporación: 21/01/13 Mensajes recientes
Hi Philipp,
Did you find a solution (other than CSS) for the "back link"?

Thanks
thumbnail
Jacques Traore, modificado hace 10 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 49 Fecha de incorporación: 21/01/13 Mensajes recientes
I've found a solution to not show the back link. It is inside liferay-ui.tld file
You need to hook the asset publisher and override the full_content.jsp,
In that jsp, find following code
<c:if test="<%= showAssetTitle %>">
		<liferay-ui:header backURL="<%= print ? null : redirect %>" localizeTitle="<%= false %>" title="<%= title %>" />
	</c:if>

and add the attribute
showBackURL="false"
into the liferay-ui:header tag.
You should have something like this:

<c:if test="<%= showAssetTitle %>">
		<liferay-ui:header showBackURL="false" backURL="<%= print ? null : redirect %>" localizeTitle="<%= false %>" title="<%= title %>" />
	</c:if>


Hope this helps.
shima shima, modificado hace 9 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 46 Fecha de incorporación: 14/04/14 Mensajes recientes
HI
thank u I used it, it is useful, but it show full text article in new page .I have asset publisher(structure and template) .what I need is ,when click on"read more" show asset publisher 's full content in content display.can anyone help me? .
shima shima, modificado hace 9 años.

RE: Asset publisher to display articles in another page

Junior Member Mensajes: 46 Fecha de incorporación: 14/04/14 Mensajes recientes
I used this https://issues.liferay.com/browse/LPS-16033 .it seemes true but I think there is a rung on it ,plz guid me.