CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12326] change to Content Manager copied page defaults

avatar
Created By: Chris Taylor (chrisbt)
Date Submitted: 2020-06-20 06:48

Assigned To:
Resolution: None
State: Open
Summary:
change to Content Manager copied page defaults
Detailed Description:
I'd like to suggest that when copying a Content Manager page, don't prefix the
Menu Text, Page Title and alias with  'copy-of-'. e.g. alias becomes
'copy-of-PREVIOUS-ALIAS'

The reason for this is to make the copy function more editor friendly than
adding in 'copy-of' that is simply annoying (IMO)

Suggestion:
Menu Text - use 'Previous Menu Text*' - instead of 'Copy of Previous Menu Text'
Page Title - use 'Previous Page Title*' - instead of 'Copy of Previous Page
Title'
Alias - leave blank so when saving an alias is created based on the menu text,
with '-2', etc suffix if needed. Similar to url, is left blank on copy, then
created at first Submit.

the following seems to work in
\modules\CMSContentManager\action.admin_copycontent, line 80:
// $to_obj->SetName('Copy of '.$from_obj->Name());
// $to_obj->SetMenuText('Copy of '.$from_obj->MenuText());
$to_obj->SetName($from_obj->Name().'*');
$to_obj->SetMenuText($from_obj->MenuText().'*');
//$to_obj->SetAlias();

History