【问题标题】:how to print file path location in imce drupal?如何在 imce drupal 中打印文件路径位置?
【发布时间】:2016-01-21 10:04:15
【问题描述】:

我想在 imce 中显示文件位置路径: 我打开了 imce-file-list.tpl.php 发现:

 <tr id="<?php print $raw = rawurlencode($file['name']); ?>">
        <td class="name"><?php print $raw; ?></td>
        <td class="size" id="<?php print $file['size']; ?>"><?php print format_size($file['size']); ?></td>
        <td class="width"><?php print $file['width']; ?></td>
        <td class="height"><?php print $file['height']; ?></td>
        <td class="date" id="<?php print $file['date']; ?>"><?php print format_date($file['date'], 'short'); ?></td>
      </tr>

我想打印 $file[path] 但它不起作用

【问题讨论】:

  • 你用引号试试 $file['path'] 吗?
  • 是但没用,我想显示目录名,我也试过:dirname,但也没用
  • 嘿伙计,试试 $imce['furl'] 和 $imce['dir'] 字体:[drupal.org/node/1738218#comment-10674360]
  • Thnx man :D :D 曾与 $imce['furl']
  • 请接受答案。

标签: php drupal drupal-modules drupal-theming imce-file-browser


【解决方案1】:

Salaktarus,

尝试使用 $imce['furl'] 变量。

来自drupal.org/node/1738218#comment-10674360

【讨论】:

    猜你喜欢
    • 2011-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-25
    • 2022-11-28
    • 2023-01-24
    • 2022-01-07
    • 1970-01-01
    相关资源
    最近更新 更多