てきとう

ワーワーゆうとります

 imagemenuの画像をIMCEでアップする

両方modulesにアップ。自動的に[Browse]ボタンが出る。
クリックしたら別窓が出るけど、なぜかアクセスできない。
よく見たらアドレスがなんかおかしいぞ。
設置場所がhttp://example.com/drupal/とかだとうまくいかない。


imagemenu.admin.incの347行目くらいが、こうなっていたのを

$form['menu']['imagepath']['#description'] = t('The path to the image. ').'<input type="button" value="Browse" 
      onClick="window.open(\'/?q=imce&app=imagemenu|url%40edit-menu-imagepath\', \'\', \'width=760,height=560,resizable=1\')"';


こう変更。

$form['menu']['imagepath']['#description'] = t('The path to the image. ').'<input type="button" value="Browse" 
      onClick="window.open(\''.$GLOBALS['base_url'].'?q=imce&app=imagemenu|url%40edit-menu-imagepath\', \'\', \'width=760,height=560,resizable=1\')"';


これでどこに置いてあるdrupalでも平気ですね。