Revision 1760
Added by Dietmar about 12 years ago
settings.php | ||
---|---|---|
19 | 19 |
require_once(WB_PATH.'/framework/class.admin.php'); |
20 | 20 |
$admin = new admin('Pages', 'pages_settings'); |
21 | 21 |
|
22 |
|
|
22 | 23 |
/*-- Parent page list ------------------------------------------------------------------*/ |
23 | 24 |
function parent_list($parent) |
24 | 25 |
{ |
... | ... | |
26 | 27 |
$sDisabled = ' disabled="disabled"'; |
27 | 28 |
$sSelected = ' selected="selected"'; |
28 | 29 |
|
29 |
$sql = 'SELECT `page_id`, `level`, `parent`, `menu_title`, `page_title`, ' |
|
30 |
$sql = 'SELECT `page_id`, `level`, `link`, `parent`, `menu_title`, `page_title`, '
|
|
30 | 31 |
. '`language`, `admin_groups`, `admin_users`, `visibility`, ' |
31 | 32 |
. '`viewing_groups`, `viewing_users` ' |
32 | 33 |
. 'FROM `'.TABLE_PREFIX.'pages` ' |
... | ... | |
94 | 95 |
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `page_id` = '.$page_id; |
95 | 96 |
if( ($oPages = $database->query($sql)) ) { |
96 | 97 |
$aCurrentPage = $oPages->fetchRow(MYSQL_ASSOC); |
98 |
// Work-out if we should set seo_title |
|
99 |
$aCurrentPage['seo_title'] = basename($aCurrentPage['link']); |
|
97 | 100 |
// Work-out if we should check for existing page_code |
98 | 101 |
$field_set = isset($aCurrentPage['page_code']); |
99 | 102 |
if( !$admin->ami_group_member($aCurrentPage['admin_groups']) && |
... | ... | |
130 | 133 |
'PAGE_ID' => $aCurrentPage['page_id'], |
131 | 134 |
'PAGE_IDKEY' => $admin->getIDKEY($aCurrentPage['page_id']), |
132 | 135 |
'PAGE_TITLE' => ($aCurrentPage['page_title']), |
136 |
'PAGE_LINK' => ($aCurrentPage['link']), |
|
133 | 137 |
'MENU_TITLE' => ($aCurrentPage['menu_title']), |
138 |
'SEO_TITLE' => ($aCurrentPage['seo_title']=='') ? $aCurrentPage['menu_title'] : $aCurrentPage['seo_title'], |
|
134 | 139 |
'DESCRIPTION' => ($aCurrentPage['description']), |
135 | 140 |
'KEYWORDS' => ($aCurrentPage['keywords']), |
136 | 141 |
'MODIFIED_BY' => $user['display_name'], |
Also available in: Unified diff
! fallback changes in wysiwyg Revision 1754
because it's required that section_id is the PRIMARY KEY
Fallback will be done in upgrade-script until the final version
! build in extra input seo title in page settings
! beginning rebranding wb_theme