Fórumok
liferay-ui:ratings
Klaus Veiser, módosítva 8 év-val korábban
liferay-ui:ratings
New Member Bejegyzések: 6 Csatlakozás dátuma: 2015.09.07. Legújabb bejegyzések
Hi,
I need to include the taglib ui in into a velocity template?
<liferay-ui:ratings
className="..."
classPK="..."
/>
To be more precise, it is an asset publisher display template written in velocity.
Is this even possible?
Regards
Klaus
I need to include the taglib ui in into a velocity template?
<liferay-ui:ratings
className="..."
classPK="..."
/>
To be more precise, it is an asset publisher display template written in velocity.
Is this even possible?
Regards
Klaus
Olaf Kock, módosítva 8 év-val korábban
RE: liferay-ui:ratings
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Velocity can't use the taglibs. Freemarker can - the syntax currently escapes me (and I hope that it also works from ADT), but should be findable in the documentation or some samples.
Julien Mourad, módosítva 8 év-val korábban
RE: liferay-ui:ratings
Junior Member Bejegyzések: 78 Csatlakozás dátuma: 2015.01.22. Legújabb bejegyzések
Klaus,
You can access some of the tags using the $taglibLiferay variable. See the class VelocityTaglib for details.
In your case, it would be
You can access some of the tags using the $taglibLiferay variable. See the class VelocityTaglib for details.
In your case, it would be
$taglibLiferay.ratings(className, classPK, numberOfStars, type, url)
Klaus Veiser, módosítva 8 év-val korábban
RE: liferay-ui:ratings
New Member Bejegyzések: 6 Csatlakozás dátuma: 2015.09.07. Legújabb bejegyzések
Thank you very much. It works!!
Olaf Kock, módosítva 8 év-val korábban
RE: liferay-ui:ratings
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Oops - I missed that. Thanks for reporting.