summaryrefslogtreecommitdiff
path: root/edit_xref.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-29 15:32:37 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-29 15:32:37 +0100
commit6b0a62a5a356e1dd3274e3966552d73f155e8936 (patch)
treeb8b86daf5dbbf84f557833072f14c71712b0d619 /edit_xref.php
parentc401680a7cbe4ffffbcd496fa671e319a4967fc1 (diff)
downloadliberty-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.php2
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 );