-
Notifications
You must be signed in to change notification settings - Fork 2.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Is there a way to get the htmlFieldPrefix in widget.edit #5995
Comments
@SteeveDumais For example, If your widget is called |
I have created the file Content-{MyWidget}.edit.cshtml but it is not being hit. Is there no way to get the value on the widget.edit.cshtml page? |
Hmm! So If your Content Type
|
Where in the model is the prefixe when I go to Widget-News.Edit.cshtml. I have modified the ContentCard-FlowPart.Edit.cshtml to force the Model.ContentEditor.Metadata.Prefix = Model.PrefixValue. I was hoping that I did not have to do that step and that Model.ContentEditor had that value somewhere or it was present int he viewContext |
@SteeveDumais I don't think that you need to change the prefix value. |
I am creating a contentCard that has a Content of stereotype widget. When I display the widget it is a react component. In order for the values to be saved the widget components need to be named "prefixValue. the field name", where the prefixValue is coming from the contentCard. I was hoping there was a way to reference the contentCard prefix in the widget-myWidget.Edit.cshtml page |
@SteeveDumais when you use |
@SteeveDumais with recent change in PR #5989 , now, PrefixValue is ContentItemId for existing Item. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am trying to get the html prefix of a widget so that I can manually create the field in Widget-{myWidget}.edit.cshtml.
All my widgets will be in react and I need to name them correctly so that the ModelUpdate will pick up the modification in edit mode.
The text was updated successfully, but these errors were encountered: