cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Primary content

VasiliyRepecki
12-Amethyst

Primary content

Hi.

My WTDocumets and EPMDocuments have primary content.

But wt.content.ContentHelper.getPrimary(contentHolder) method returns null for all of them.

Why?

ACCEPTED SOLUTION

Accepted Solutions

Resolved.

ContentHolder refreshedContentHolder = ContentHelper.service.getContents(contentHolder);

ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) refreshedContentHolder);

works fine.

View solution in original post

1 REPLY 1

Resolved.

ContentHolder refreshedContentHolder = ContentHelper.service.getContents(contentHolder);

ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) refreshedContentHolder);

works fine.

Announcements


Top Tags