HappyPorch / uSplit

A/B Testing plugin for Umbraco
The Unlicense
11 stars 7 forks source link

Can't use custom models with uSplit #22

Closed ptilsed closed 5 years ago

ptilsed commented 6 years ago

Hi,

After installing uSplit onto one of our sites to test the basic functionality we hit an error on a page where we use a custom model in the template. This set up is commonplace and almost default given Models Builder is now part of the core.

After a bit of digging, I found the error was being caused by uSplit passing in its own custom model to the page in order to render the content. I think that to make uSplit relevant to newer Umbraco builds it needs to be able to work with custom models and not just its own iPublishedContent model.

Cheers,

Paul

ondrejpialek commented 5 years ago

Thanks @ptilsed , PR merged and will be released soon