AEM gadget
Information valid from AMI version 8.0 initial release
Summary
The AEM gadget provides integration with the Adobe Experience Manager. It builds a URL based on data from the current context selected in AMI. This URL is then used to invoke the AEM.
Configuring the AEM gadget
The workspace configuration for the AEM gadget contains just one item: the base of a URL where an instance of AEM can be found; e.g. "http://123.45.6.789:4502". The rest of the URL is derived as follows.
Any objects that AEM can display will have had two or three extra attributes added to them. The attribute definition ids of these three attributes are held in Agility's System Preference table, under the names AEM_SITE_NAME, AEM_SITE_OBJECTID, and AEM_SITE_PRODUCT_PAGE_NAME.
The AEM site name is a string containing the name of a 'site' in the AEM hierarchy, which is also an object in the Agility Event structure. The AEM site object id is the Agility object id of that same 'site' object.
Suppose that the object id path of the current context is [101, 102, 103, 104, 105], and its path name is "Obj A/Obj B/Obj C/Obj D/Obj E". The AEM gadget looks to see if the object has the three required extra attributes; suppose that they do exist, and their values are "Suitcases", "103", and "Anglia". In this case the required URL will be:
http://123.45.6.789:4502/Suitcases/Obj D/Obj E/Anglia.html
The value 103 is used to find a point in the object's path where to begin taking the object's path name. 103 corresponds to 'Obj C', so everything after that is used in the URL.
If the AEM_SITE_PRODUCT_PAGE_NAME system preference is not defined, then the value of the object's 'productDescription' attribute is used instead. If that isn't available either, then the object's name is used.