-
I am trying to override the Templates for the InputPart for a theme that works with liquid only. To do it properly, I need to access the ModelState with liquid. How to do that? The default razor template assigns I would need to access Anyone having different ideas or knowing how to access the ModelState? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I guess not every object is exposed to liquid - and IMHO liquid is not completely replaces Attempted value you can be accessed directly from request https://docs.orchardcore.net/en/latest/docs/reference/modules/Liquid/#request |
Beta Was this translation helpful? Give feedback.
I guess not every object is exposed to liquid - and IMHO liquid is not completely replaces
cshtml
and purpose of liquid is to provide safe design customization at run time. If you need to more than just design then it's better to usecshtml
- or register your own accessor for data that you want to expose in liquid.Attempted value you can be accessed directly from request https://docs.orchardcore.net/en/latest/docs/reference/modules/Liquid/#request