Module Actions in subfolders #6035
-
|
Is it possible to organize actions for a module in subfolders? For example: MyModule/ And I should be able to add an action link like , but it doesn't seem to work for the actions inside the subfolder. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
@mdmontesinos the actions you are referring to are razor components... and razor components are organized by namespaces - not by folders. When Oqtane starts up it uses reflection to discover all of the razor components and by convention, it uses namespaces to determine how they are related to one another. So to answer your question, you certainly could put some razor components in a subfolder however they will need to use the same namespace as the parent folder (or else they will not be grouped together) |
Beta Was this translation helpful? Give feedback.
@mdmontesinos the actions you are referring to are razor components... and razor components are organized by namespaces - not by folders. When Oqtane starts up it uses reflection to discover all of the razor components and by convention, it uses namespaces to determine how they are related to one another. So to answer your question, you certainly could put some razor components in a subfolder however they will need to use the same namespace as the parent folder (or else they will not be grouped together)