Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom criteria Angular code being deleted #2

Closed
rickbutterfield opened this issue Feb 24, 2022 · 4 comments
Closed

Custom criteria Angular code being deleted #2

rickbutterfield opened this issue Feb 24, 2022 · 4 comments

Comments

@rickbutterfield
Copy link
Contributor

rickbutterfield commented Feb 24, 2022

I've created a custom criteria in C# and that works absolute fine, but if I create a custom folder under App_Plugins/PersonalisationGroups it gets removed on every build. Currently I think custom ones have to be under this folder to be picked up?

var templateUrl = "/App_Plugins/PersonalisationGroups/Criteria/" + convertAliasToFolderName(definitionDetail.alias) + "/definition.editor.html";

@AndyButland
Copy link
Owner

Yes, that makes sense - I think this could be problematic. Will have a look and see what we could do about this, I guess either allowing a different path, or making sure the build process only removes files actually installed by the package.

@AndyButland
Copy link
Owner

Think I've found a resolution to this, though it does involve a small breaking change in the addition of a new property on IPersonalisationGroupCriteria, where you can provide a folder for the client-side assets.

Would you mind having a look over the linked PR to see if you think that'll work for you? And if so, I'll merge it in and push out an update.

@rickbutterfield
Copy link
Contributor Author

@AndyButland Just pulled it into my solution and it's worked a treat! 🎉

@AndyButland
Copy link
Owner

Good to hear, thanks. Have released as 3.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants