Load a lithium component with context via ajax
Hi,
based on this post: https://lithosphere.lithium.com/t5/Developer-Discussion/Click-to-load-a-component/m-p/168251/highlight/true#M6741
i wanted to load several lithium components asynchronously. The problem is, that most of them require additional paramaters and context to work properly.
An example is the widget 'recommended-content-taplet' which shows recommended posts related to the currently viewed one and which is already used by the platform:
LITHIUM.Components.renderInPlace('recommendations.widget.recommended-content-taplet', { "componentParams" : {mode : "slim", componentId : "recommendations.widget.recommended-content-taplet"}, "componentId" : "recommendations.widget.recommended-content-taplet" }, { "errorMessage" : "Ein unerwarteter Fehler ist aufgetreten.", "type" : "POST", "url" : "/t5/forums/v4/forumtopicpage.recommendedcontenttaplet:lazyrender?t:ac=board-id/155/message-id/29447/thread-id/29447&t:cp=recommendations/contributions/page" }, 'recommendedContentTaplet_shell', '#recommendedContentTaplet', '#recommendedContentTaplet_container');
I understood, that component parameters can be passed in componentParams.
But how does this context work? Obviously the loaded component gets it's context (to which message) with the passed url.
Can anybody explain how this url works (which parameters/values can be used etc.)?
Is it possible to get a user context (of course only public information) e.g. for a call for 'kudos.widget.messages-recently-kudoed-by-user' to load this widget related to another user than myself?
'