Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Creating related links using API

The "WCB: Java development" forum contains threads on issues that are related to Java while programming a WCB (WebManager Component Bundle). If you have questions that have impact on Java code, post them in this forum. Some example topics: authorization, the different component types, setting up component dependencies, data access, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: Java development  >  Creating related links using API


Author Creating related links using API
ronaldz


Posts: 11

Posted: 20-08-2009 09:05

Hi all,

I'm trying to create mediarepository articles using the API and can't figure out how to create (internal) links that are related to an article. I've found that the MediaItemArticleVersion class has a method:

setRelatedLinks(RelatedLink[] relatedLinks)

However, I'm not sure how to create these related links then.

I've been trying to find different ways to insert links, especially internal links. The LinkManagementService only provides me a way to create external related links, not internal.

Could anyone point out to me how this can be done?

Thanks!

pveijden


Posts: 21

Posted: 20-08-2009 13:18

The setRelatedLinks method is empty, so that's not the way to go. It would be nice to refer to this method in the javadoc as empty so other people wouldn't be misleaded.

I'm not sure if the creation of links is currently implemented in the content API.

Cthulhu



Posts: 212

Posted: 21-08-2009 13:48

Better to mark it as @deprecated or get rid of it altogether while it's not used. But that's imo.

pveijden


Posts: 21

Posted: 23-08-2009 14:19

It's not possible using the (currently implemented) content API. I mailed you a piece of code how to do this using Siteworks (not Siteworkers, that's where I work :)).

Met vriendelijke groeten,
Paul van Eijden
Siteworkers
De GX WebManager experts

michelt



Posts: 235

Posted: 24-08-2009 06:20

Hi,

Implementing shortcomings of the API via Siteworks is not the way to go! You rather add a JIRA request for Product Development to provide a implementation for this missing API method. That's the only way we can guarantee backwards compatibility!

Side note to Paul: Forget the GX Webmanager 8 era in terms of how some problems were solved. The APIs provided should be your holy grail.

Regards,

Michel

Back to top

New message: "Creating related links using API"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.