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:
parent
2886fc5f98
commit
f29811307f
|
@ -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">';
|
||||
|
|
|
@ -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">';
|
||||
|
|
Loading…
Reference in New Issue