Sitemap and File Manager buttons in edit bar

Permalink
Since I updated to 5.4.2 my sitemap and file manager functions in the edit bar are bugged up. It shows no icons and clicking on them brings you to there pages with no css/javascript at all. I've checked off the options to show them and replace the page_controls_js with a new js file from the 5.4.2 zip file.

I updated from 5.4.1.1 to 5.4.2 through the update function within the CMS that had those options hardcoded in the page_controls_js file.

1 Attachment

 
Mnkras replied on at Permalink Reply
Mnkras
If it was a full and succesfull update then it should work fine, header buttons were re-factored in 5.4.2, if you changed any of the header code, it will require some modifications to work again.
doctypedesigner replied on at Permalink Reply
What will I have to change??

In 5.4.1.1 I added the code below to make it the sitemap and file manager show in the edit bar.

<?php
if ($sh->canRead() && $u->config('UI_SITEMAP')) { ?>
menuHTML += '<li><a id="ccm-nav-sitemap" dialog-title="<?php echo t('Navigate to Page')?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/sitemap_search_selector?callback=ccm_goToSitemapNode&sitemap_select_mode=select_page" dialog-on-open="$(\'#ccm-nav-sitemap\').removeClass(\'ccm-nav-loading\')" dialog-width="90%" dialog-height="70%" dialog-modal="false"><?php echo t('Sitemap')?></a></li>';
<?php
}
$fp = FilePermissions::getGlobal();
if ($fp->canSearchFiles() && $u->config('UI_FILEMANAGER')) { ?>
menuHTML += '<li><a id="ccm-nav-file-manager" dialog-title="<?php echo t('File Manager')?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/files/search_dialog?disable_choose=1" dialog-on-open="$(\'#ccm-nav-file-manager\').removeClass(\'ccm-nav-loading\')" dialog-width="90%" dialog-height="70%" dialog-modal="false"><?php echo t('File Manager')?></a></li>';
keeasti replied on at Permalink Reply
keeasti
Hmmm ... Anybody know why it now says Navigate to Page instead of File Manager and Sitemap in the title bar of the pop up floating windows now? And how to change it?
I tried editing the optional_menu_buttons.php file but it seems not to have any effect.
I couldn't find the words 'Navigate to Page'anywhere else in the entire directory structure...


$ihm->addPageHeaderMenuItem('filemanager', t('File Manager'), 'right', array(
'dialog-title' => t('Navigate to Page'),
'href' => REL_DIR_FILES_TOOLS_REQUIRED . '/files/search_dialog?disable_choose=1',
'dialog-on-open' => "$(\'#ccm-page-edit-nav-filemanager\').removeClass(\'ccm-nav-loading\')",
'dialog-width' => '90%',
'dialog-height' => "70%",
'dialog-modal' => "false"
));

}
jimmybj replied on at Permalink Reply
I got the same issue, I downloaded clean install file/ zip from both concrete and also tried the one at sourceforge but i still get the same issue. 5.4.2..
keeasti replied on at Permalink Reply
keeasti
Anybody have an idea?
doctypedesigner replied on at Permalink Reply
I had to update to 5.4.2.1 (NOT 5.4.2.2). They changed the way the buttons are handled.

Make sure you have NO modified page_controls_menu_js in your tools folder in the root directory (public_html/tools) and update to 5.4.2.1, that's what fixed mine at least. If I find any more details I did I'll let you know. oh, and make you you click show sitemap/file managers buttons in the settings too of course.
jordanlev replied on at Permalink Reply
jordanlev
If you're having this problem with 5.4.2.2, it's because of a bug. See here for instructions on how to fix it:
http://www.concrete5.org/developers/bugs/5-4-2-2/sitemap-and-file-m...