Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Muhammed asma khanam
Asset publisher to display articles in another page
February 5, 2010 5:31 AM
Answer

Muhammed asma khanam

Rank: New Member

Posts: 17

Join Date: November 17, 2009

Recent Posts

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
Vidya Sagar Padigela
RE: Asset publisher to display articles in another page
February 8, 2010 1:57 PM
Answer

Vidya Sagar Padigela

Rank: Junior Member

Posts: 47

Join Date: May 20, 2008

Recent Posts

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
RE: Asset publisher to display articles in another page
February 9, 2010 2:17 AM
Answer

Boen Liem

Rank: New Member

Posts: 1

Join Date: January 26, 2010

Recent Posts

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
Vidya Sagar Padigela
RE: Asset publisher to display articles in another page
February 9, 2010 5:40 PM
Answer

Vidya Sagar Padigela

Rank: Junior Member

Posts: 47

Join Date: May 20, 2008

Recent Posts

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
Charles de Courval
RE: Asset publisher to display articles in another page
October 18, 2010 11:44 AM
Answer

Charles de Courval

Rank: Junior Member

Posts: 55

Join Date: July 31, 2010

Recent Posts

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
Philipp Michael
RE: Asset publisher to display articles in another page
January 26, 2011 4:19 AM
Answer

Philipp Michael

Rank: New Member

Posts: 22

Join Date: January 19, 2011

Recent Posts

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?
Jacques Traore
RE: Asset publisher to display articles in another page
April 9, 2013 12:02 PM
Answer

Jacques Traore

Rank: Junior Member

Posts: 46

Join Date: January 21, 2013

Recent Posts

Hi Philipp,
Did you find a solution (other than CSS) for the "back link"?

Thanks
Jacques Traore
RE: Asset publisher to display articles in another page
August 8, 2013 11:00 AM
Answer

Jacques Traore

Rank: Junior Member

Posts: 46

Join Date: January 21, 2013

Recent Posts

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
1<c:if test="<%= showAssetTitle %>">
2        <liferay-ui:header
3            backURL="<%= print ? null : redirect %>"
4            localizeTitle="<%= false %>"
5            title="<%= title %>"
6        />
7    </c:if>

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

1<c:if test="<%= showAssetTitle %>">
2        <liferay-ui:header showBackURL="false"
3            backURL="<%= print ? null : redirect %>"
4            localizeTitle="<%= false %>"
5            title="<%= title %>"
6        />
7    </c:if>


Hope this helps.
shima shima
RE: Asset publisher to display articles in another page
September 14, 2014 12:18 AM
Answer

shima shima

Rank: Junior Member

Posts: 46

Join Date: April 13, 2014

Recent Posts

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
RE: Asset publisher to display articles in another page
September 16, 2014 12:45 AM
Answer

shima shima

Rank: Junior Member

Posts: 46

Join Date: April 13, 2014

Recent Posts

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.