Add wiki instructions path hierarchy walk-up
When looking up wiki docs for a screen, now walks up the path hierarchy to find the most specific match. For example, for path 'Catalog/Product/EditProduct/Assocs', it tries: 1. Catalog/Product/EditProduct/Assocs (most specific) 2. Catalog/Product/EditProduct (inherits if no specific doc) 3. Catalog/Product 4. Catalog This allows parent screen docs to apply to all child tabs/subscreens unless overridden with more specific documentation. Updated both getWikiInstructions (used by execute#ScreenAsMcpTool) and loadWikiContent (used by moqui_browse_screens) to use this approach.
Showing
1 changed file
with
75 additions
and
28 deletions
-
Please register or sign in to post a comment