Replies: 10 comments
-
I guess you need e.g. Following configures Liquid filters from OrchardCore/src/OrchardCore.Modules/OrchardCore.Contents/Startup.cs Lines 210 to 220 in 815e297 |
Beta Was this translation helpful? Give feedback.
-
This will register the liquid filters when the specified feature(s) is enabled, I'm not sure if the TagHelper in the view, and not registered it will render nothing or show an error Let me try .. thanks |
Beta Was this translation helpful? Give feedback.
-
I am worried with the notion of "visibility" that you mentioned. |
Beta Was this translation helpful? Give feedback.
-
For now I can do the check in the TagHelper, and suppress the output if the module is disabled |
Beta Was this translation helpful? Give feedback.
-
So you control the visibility of view/shape not TagHelper. If a view is for specific MVC controller (views) can be bound to feature, but shapes are discovered on module. I would suggest to define base shape in module and add different alternates via |
Beta Was this translation helpful? Give feedback.
-
Make sense, but the scenario I have to add it in the layout ;) |
Beta Was this translation helpful? Give feedback.
-
Tb
E.g. default will be Or may be you keep single |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, I think I need to deep dive into shapes and zones ;) |
Beta Was this translation helpful? Give feedback.
-
Example of this scenario - injecting Zone is |
Beta Was this translation helpful? Give feedback.
-
Exactly!! |
Beta Was this translation helpful? Give feedback.
-
I'm working on a certain module, I created a TagHelper for that, which is registered when the module is enabled, my question is how can I toggle the visibility depending on module activation, something like what I have seen in most modules that are using Liquid filters
Beta Was this translation helpful? Give feedback.
All reactions