Important: #104027 - New ViewHelper argument "module" to define module context
See forge#104027
Description
A new optional argument
module has been added to the following ViewHelpers:
<be:link. edit Record> <be:link. new Record> <be:uri. edit Record> <be:uri. new Record>
The module argument allows integrators to explicitly define the backend module context
used when opening the FormEngine to edit or create a record. When set, this module will be
highlighted as active in the backend menu, providing better navigation context.
This is particularly useful in scenarios where the default context cannot be reliably inferred.
Note
This is only necessary if the ViewHelper cannot determine the module context from the request, e.g. when used in an AJAX call.
If the ViewHelper is used within a backend module, setting the
module argument is usually not required unless a specific
module context should be enforced deliberately.
Usage Example
<be:link.editRecord table="tt_content" uid="{record.uid}" module="web_layout">
Edit this content element
</be:link.editRecord>
<be:uri.newRecord table="custom_table" pid="123" module="web_list" />
Impact
When used, it ensures a more accurate and predictable backend editing experience by controlling which module is marked as active when the FormEngine opens.