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

Doesnt work on Members #63

Closed
rasmuseeg opened this issue Sep 29, 2016 · 4 comments
Closed

Doesnt work on Members #63

rasmuseeg opened this issue Sep 29, 2016 · 4 comments

Comments

@rasmuseeg
Copy link
Contributor

Hi There, awesome editor. Though i can't get it to work with any datatypes on a member?

I found the following code returns null.

vortoResources.getDataTypeByAlias(currentSection, nodeContext.contentTypeAlias, $scope.model.alias).then(function (dataType2) {
                $scope.model.value.dtdGuid = dataType2.guid;

At this point dataType2 is "null"

@mattbrailsford
Copy link
Collaborator

Vorto is currently only built to work on Content / Media. I'd need to check what else we need to do, but it may just need us to add another option to this switch statement for member:

https://github.com/umco/umbraco-vorto/blob/master/src/Our.Umbraco.Vorto/Web/Controllers/VortoApiController.cs#L44

If you wanted to pull the code and compile a custom version to check, and create a Pull Request if that does do the trick, that would be awesome. Otherwise I'll try and take a look as soon as I can.

@rasmuseeg
Copy link
Contributor Author

Okay, i was going to make a property editor either anyways. Will look into it.

@mattbrailsford
Copy link
Collaborator

Thanks Rasmus, any help would be appreciated.

@rasmuseeg
Copy link
Contributor Author

Updated the package, and now it breaks again.

the returned datatype on:
https://github.com/umco/umbraco-vorto/blob/master/src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js#L313
Is null again.

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

No branches or pull requests

2 participants