I have a dynamic source for a treelist field in my template.

enter image description here

In order to resolve the source location, I created a pipeline in getLookupSourceItems section.

The code snippet is shown below.

public class ResolveCustomSource

    public void Process(GetLookupSourceItemsArgs args)
       Assert.ArgumentNotNull((object)args, "args");
        Assert.IsNotNull((object)args.Item, "Item");
        if (this.SkipProcessor(args))

        //here i have some cutom processing to get the source


    public virtual bool SkipProcessor(GetLookupSourceItemsArgs args)
        if (string.IsNullOrWhiteSpace(args.Source))
            return true;
       //check if datasource is present in the source of the field


When I select the template containing the field in content editor or experience editor, the pipeline does not get triggered and the list is empty.

After reading some blogs, I decided to create a custom treelist inheriting from treelist. using this, the list gets populated on the content editor, but not on experience editor.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.