RHamilton
12/12/2023, 4:28 PMpublic IEnumerable<DataListItem> GetItems(Dictionary<string, object> config)
    {
        var items = new List<DataListItem>();
        var thing = _contentmentContentContext.GetCurrentContent(out bool isParent);
        var typeId = thing.Value<int>("pluType");
        var url = $"https://my.api.org/galaxy/plu/{typeId}";
        var response = await _myApiService.GetData(url);
        items = // build items from results
        return items;
    }A hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by