【发布时间】: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'] 吗?
-
是但没用,我想显示目录名,我也试过: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