Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ákos Gábriel
Web content display with filter
March 13, 2013 9:48 AM
Answer

Ákos Gábriel

Rank: Junior Member

Posts: 33

Join Date: October 5, 2009

Recent Posts

Hi,

How would you implement a filter functionality based on content structure for Web content display?
Let's say I have 3 structures and would like to have 3 variants of web content display portlet (looks like inheritance?) which display (in their content list) only those content which have the pre-set structure.
So PortletA displays only structure A content, PortletB structure B etc...

Btw how would you inherit from a built-in portlet? (considering maintainability/upgrades)?

Thanks,
Akos
Hitoshi Ozawa
RE: Web content display with filter
March 14, 2013 3:51 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

You can try setting Category or Tag and using Asset Publisher to display your Web Content.
Ákos Gábriel
RE: Web content display with filter
March 14, 2013 4:01 PM
Answer

Ákos Gábriel

Rank: Junior Member

Posts: 33

Join Date: October 5, 2009

Recent Posts

Sadly I have more strict requirements. They want 5 different portlets, preconfigured (unchangeable by the user).
So far I was able to replicate JournalArticle portlet into another one, which is now hooked and is filtering the articles according to the hard-coded structure_id.

There is one thing left: the hard-coded value should be replaced with some kind of a property or init-parameter read from a configuration file.
I want to do this in the (hooked) article_search.jsp with PortletProps.get() but it doesn't work yet. Looks like it is missing some .jar files. Can you help with that please?

Akos
Beatriz Sánchez Pérez
RE: Web content display with filter
July 24, 2013 4:08 AM
Answer

Beatriz Sánchez Pérez

Rank: New Member

Posts: 18

Join Date: April 28, 2011

Recent Posts

Hi Akos,

I have the same problem. My boss want one portlet in Control Panel for each Struture of Content Web.

Could you help me?

Any help will be welcome.

Thank you for everything