diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-29 15:32:37 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-29 15:32:37 +0100 |
| commit | 6b0a62a5a356e1dd3274e3966552d73f155e8936 (patch) | |
| tree | b8b86daf5dbbf84f557833072f14c71712b0d619 /edit_xref.php | |
| parent | c401680a7cbe4ffffbcd496fa671e319a4967fc1 (diff) | |
| download | liberty-6b0a62a5a356e1dd3274e3966552d73f155e8936.tar.gz liberty-6b0a62a5a356e1dd3274e3966552d73f155e8936.tar.bz2 liberty-6b0a62a5a356e1dd3274e3966552d73f155e8936.zip | |
Add enrichXrefDisplay hook and xkey_ext to value edit template
- LibertyContent: add enrichXrefDisplay() no-op hook; call it in edit_xref.php
so packages can inject display-only data (e.g. component title) into xrefInfo
- edit_xref_value_item.tpl: add Notes (xkey_ext) field alongside Value (xkey)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit_xref.php')
| -rw-r--r-- | edit_xref.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/edit_xref.php b/edit_xref.php index b58044a..bd4d161 100644 --- a/edit_xref.php +++ b/edit_xref.php @@ -49,6 +49,8 @@ if( !empty( $_REQUEST['fSaveXref'] ) ) { $xrefInfo = $gContent->mInfo['xref_store']['data'] ?? []; } +$gContent->enrichXrefDisplay( $xrefInfo ); + $gBitSmarty->assign( 'gContent', $gContent ); $gBitSmarty->assign( 'xrefInfo', $xrefInfo ); $gBitSmarty->assign( 'errors', $gContent->mErrors ); |
