HappyPorch / uSplit

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

Add a configuration option to hide variations in the content tree. #6

Open ondrejpialek opened 7 years ago

ondrejpialek commented 7 years ago

A new feature request from #5:

I suggest hiding the variantions folder. Variations node should be editable only from experiment page. It would make everything easier to understand.

ondrejpialek commented 7 years ago

Long term the plan is to integrate with Umbraco 8 content variations & segmentation, which are a perfect fit for what we are doing.

Short term I believe it is important that the variations are visible by default, as they need to be published at this point, and are therefore publicly accessible by default.

That being said, I certainly agree that there are circumstances where being able to hide these would be useful.

I don't think we will put any development into this unless there is a big demand for this feature, especially with Umbraco 8 coming relatively soon. I will leave this card open for anyone if they want to contribute though.

There is an easy workaround for now, you can hook into the Umbraco TreeControllerBase.TreeNodesRendering event and remove the variations there. As a matter of fact, there is an unfinished and commented out attempt at this very thing inside the repo. I stopped working on this when I decided it's better to keep the variations visible.