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

Porting old Umbraco API Controller [Block Grid Editor] #6510

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

erikjanwestendorp
Copy link
Contributor

Description

This PR belongs to: #6466.

  • Change UmbracoApiController to Controller
  • Remove using statement 'using Umbraco.Cms.Web.Common.Controllers;'
  • Add Attributes
  • Get Content by Key/Guid
  • Update BlockGridElementData (Due to serialization issues)
  • Delete obsolete message
  • css to css (prevents style guide warnings, I think it is good to be careful with capitalization here because of case sensitive hosting environments)

Type of suggestion

  • Typo/grammar fix
  • Updated outdated content
  • New content
  • Updates related to a new version
  • Styleguide

Product & version (if relevant)

Umbraco CMS v14 & 15

@sofietoft
Copy link
Contributor

Thanks @erikjanwestendorp ! 💪
We'll get this reviewed as soon as possible.

Copy link
Contributor

@sofietoft sofietoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've had a chance to test this out, and I can only get it to compile if I do not make the changes you're adding to the BlockGridElementData (line 613) in the Model..cs file 🤔

It gives me the following error: Property or indexer 'BlockGridElementData.Data' cannot be assigned to -- it is read only

Perhaps it is not needed to change this method? 🤔

@sofietoft
Copy link
Contributor

Did you see my comments on this one, @erikjanwestendorp ? 😄

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

Successfully merging this pull request may close these issues.

2 participants