Add unique identifier as hidden field in edit post/page

This ensures the ID does not change when the post or page is edited.

Signed-off-by: ADTC <send2adtc@gmail.com>
This commit is contained in:
ADTC 2017-04-26 16:45:36 +08:00
parent 2886fc5f98
commit f29811307f
2 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,12 @@ HTML::formOpen(array('class'=>'uk-form-stacked'));
'value'=>$_Page->key()
));
// Unique identifier
HTML::formInputHidden(array(
'name'=>'uniqueId',
'value'=>$_Page->uniqueId()
));
// LEFT SIDE
// --------------------------------------------------------------------
echo '<div class="uk-grid uk-grid-medium">';

View File

@ -16,6 +16,12 @@ HTML::formOpen(array('class'=>'uk-form-stacked'));
'value'=>$_Post->key()
));
// Unique identifier
HTML::formInputHidden(array(
'name'=>'uniqueId',
'value'=>$_Post->uniqueId()
));
// LEFT SIDE
// --------------------------------------------------------------------
echo '<div class="uk-grid uk-grid-medium">';