Hi,

so I noticed that when I go to www.mysite.com/imce, the file browser displays. However it doesn't show any of the menus or blocks that are enabled, just the file browser.

I was looking into the module code and I found this:

function imce_menu() {
  $items = array();
  $access = array('administer site configuration');
  $items['imce'] = array(
    'title' => 'File browser',
    'page callback' => 'imce_page',
    'access callback' => 'imce_access',
    'file' => 'inc/page.inc',
    'type' => MENU_CALLBACK,
  );

I was wondering, does the imce filebrowser have an inbuilt menu link? More specifically, is there an inbuilt men link that will take you to the file browser on a page where the menus/blocks are there?

Comments

ufku’s picture

Status: Active » Fixed

IMCE had problems when displayed inside a regular page. That's why it has its own page template.
You may try 2.x which embeds IMCE page in an iframe at user/X/imce

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Daniel Norton’s picture

Status: Closed (fixed) » Active

Back to the original request, which remains unanswered, is there a way to create a menu link to the browser page?

ufku’s picture

Status: Active » Fixed

You can include IMCE page in an iframe(pointing to /imce path) inside a regular page. Then you can create the menu link for this regular page.

Daniel Norton’s picture

Status: Fixed » Active

Thanks. Putting this in a page did it for me:

<iframe class="imce-frame" style="height: 600px; width: 99.9%;" src="/imce"></iframe>

In case Drupal is not at the site root, you’ll need a bit of PHP:

<iframe class="imce-frame"
        style="height: 600px; width: 99.9%;" src="<?php echo $GLOBALS['base_url'] ?>imce">
</iframe>
Daniel Norton’s picture

Status: Active » Fixed

Sorry, I didn't intend to change the status before.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.