Fórumok

Web content display with filter

thumbnail
Ákos Gábriel, módosítva 11 év-val korábban

Web content display with filter

Junior Member Bejegyzések: 33 Csatlakozás dátuma: 2009.10.05. Legújabb bejegyzések
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
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Web content display with filter

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
You can try setting Category or Tag and using Asset Publisher to display your Web Content.
thumbnail
Ákos Gábriel, módosítva 11 év-val korábban

RE: Web content display with filter

Junior Member Bejegyzések: 33 Csatlakozás dátuma: 2009.10.05. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: Web content display with filter

New Member Bejegyzések: 24 Csatlakozás dátuma: 2011.04.28. Legújabb bejegyzések
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