We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to add some edit part alternates to customize the layout of my part using the following code
builder.Describe("ContentPart_Edit") .OnDisplaying(displaying => { dynamic shape = displaying.Shape; if (shape.ContentTypePartDefinition != null) { string contentPartName = shape.ContentTypePartDefinition.Name; displaying.Shape.Metadata.Alternates.Add($"ContentPart_Edit__{contentPartName}"); } });
But when adding a file named MyPart-ContentPart.Edit.cshtml in the admin theme its not getting picked up.
If I remove the dash convention in the name of shape as follows :
displaying.Shape.Metadata.Alternates.Add($"{contentPartName}ContentPart_Edit");
and add the file
MyPartContentPart.Edit.cshtml
then it works.
So, is this intended or has something broke ?
The part has been created from the admin , not a strongly typed class.
The text was updated successfully, but these errors were encountered:
same issue as was fixed here #7086
Sorry, something went wrong.
No branches or pull requests
Trying to add some edit part alternates to customize the layout of my part using the following code
But when adding a file named MyPart-ContentPart.Edit.cshtml in the admin theme its not getting picked up.
If I remove the dash convention in the name of shape as follows :
and add the file
then it works.
So, is this intended or has something broke ?
The part has been created from the admin , not a strongly typed class.
The text was updated successfully, but these errors were encountered: