2019-10-24 10:16 AM - last edited on 2022-09-29 10:06 AM by Daniel Kassai
Solved! Go to Solution.
2019-10-24 10:38 AM
GS::Array<API_Guid> GetElementsInHotlink (const API_Guid& hotlinkGuid) { GS::Array<API_Guid> elementsInHotlink; GS::Array<API_Guid> elemList; ACAPI_Element_GetElemList (API_ZombieElemID, &elemList); for (const API_Guid& elemGuid : elemList) { API_Elem_Head elemHead = {}; elemHead.guid = elemGuid; ACAPI_Element_GetHeader (&elemHead); if (elemHead.hotlinkGuid == hotlinkGuid) elementsInHotlink.Push (elemGuid); } return elementsInHotlink; }
2019-10-24 10:38 AM
GS::Array<API_Guid> GetElementsInHotlink (const API_Guid& hotlinkGuid) { GS::Array<API_Guid> elementsInHotlink; GS::Array<API_Guid> elemList; ACAPI_Element_GetElemList (API_ZombieElemID, &elemList); for (const API_Guid& elemGuid : elemList) { API_Elem_Head elemHead = {}; elemHead.guid = elemGuid; ACAPI_Element_GetHeader (&elemHead); if (elemHead.hotlinkGuid == hotlinkGuid) elementsInHotlink.Push (elemGuid); } return elementsInHotlink; }