You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new polymorphism selection where you can type whatever you want, invalid values are allowed, and if there is no default (non-polymorph) view, then the user cannot restore their function without resetting their cookies.
I think the correct behavior would be to either give the default/fallback view a reserved name like default or noname, and validate before storing the cookie that the view selected is valid.
Alternatively, could add some code that on error if the polymorph cookie is set, add a button to clear the cookie above/below the error.
One more option would be ensuring that the polymorph picking button is always available if the cookie is set.
Last option, change the UI for how the polymorph is selected to be an actual select/dropdown that contains only valid entries.
Instructions to Reproduce the Problem
Make an app with view polymorphism.
Hover on the View picker, and type in an invalid view name
You will see an error (this part is expected) Error: ToSic.Sxc.Engines.RenderingException: The template file '/Portals/0/2sxc/App1/Default.cshtml🎯' does not exist
You now will not be able to change back to a valid view polymorph:
Your environment
2sxc version(s): 2sxc v.17.09.00
Browser: all
DNN: all
Hosting platform: all
Language: any/all
The text was updated successfully, but these errors were encountered:
I'm submitting a
[x] bug report
[x] feature request
...about
[x] edit experience / UI
[x] admin experience UI
Current Behavior / Expected Behavior
With the new polymorphism selection where you can type whatever you want, invalid values are allowed, and if there is no default (non-polymorph) view, then the user cannot restore their function without resetting their cookies.
I think the correct behavior would be to either give the default/fallback view a reserved name like
default
ornoname
, and validate before storing the cookie that the view selected is valid.Alternatively, could add some code that on error if the polymorph cookie is set, add a button to clear the cookie above/below the error.
One more option would be ensuring that the polymorph picking button is always available if the cookie is set.
Last option, change the UI for how the polymorph is selected to be an actual select/dropdown that contains only valid entries.
Instructions to Reproduce the Problem
Error: ToSic.Sxc.Engines.RenderingException: The template file '/Portals/0/2sxc/App1/Default.cshtml🎯' does not exist
Your environment
The text was updated successfully, but these errors were encountered: