First of all: I'm sorry for the confusing title, but this forum seems to give me a very hard time when creating topics (already reported this...)
Hi all,
I'd like to know if there is a proper way to add a link to an article using the GX Content API. So far
I've found the LinkManagementService which seems to be the class that can help me out with this. Unfortunately, I've had
no success with it. The API describes that the createRelatedExternalLink method on this class is 'deprecated' and has been replaced
by the 'createRelatedLink' method. However, as I'm stuck with GX 9.11.2 for this specific project, it seems I'll have to
use the deprecated method as the new one doesn't seem to be included in this version of WM.
So, I'm doing this:
RelatedExternalLink link = linkManagement . createRelatedExternalLink(mv.getElementHolder(), url);
java. lang. reflect. InvocationTargetException
Caused by: java. lang . UnsupportedOperationException: Invalid elementholder
The name of the error worries me: if this operation is not supported by the platform I'll have serious problem in
the wish of importing articles with links included..
Does anyone know how to create a related link through the contentapi in WM 9.11.2? Or can anyone tell me if the newer
version of WM (9.12.x) does provide proper methods to create a link through the GX Content API?
Thanks!