Ask - Test
Using objects within a custom fragment using a collection configuration
Dan Frizelle, modified 4 Months ago.
Using objects within a custom fragment using a collection configuration
New Member Posts: 3 Join Date: 11/2/22 Recent Posts
I'm wondering if
you're able to offer some advice on using
objects within a custom fragment?
I'm trying to
retrieve information about an object that is
being listed within a collection.
I've setup the
configuration for this in the fragment that
allows editors to select a collection. I've
then referenced this within the HTML so that I
can print out the collection they've selected
like the below:
[#if collectionObjectList??]
[#list collectionObjectList as item]
<p>${item}</p>
[/#list]
[/#if]
What I want to do
is access the object values, i.e
"Name", "URL",
"Campaign code".
Is there a way
for me to access this easily or do i need to
access the object another way?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™