0
我有一個用戶ID數組,我需要通過視圖中的user: id
字段,爲匹配和不匹配添加一些特定的HTML結果。Drupal Views - 對於用戶:ID字段,與數組匹配內容
所以我猜是這樣的需要的觀點視場去 - uid.tpl.php:
<?php if (//Field content matches an array value): ?>
<span class="friend"><?php print $output; ?></span>
<?php endif; ?>
<?php if (//Field content doesn't match an array value): ?>
<span class="not-friend"><?php print $output; ?></span>
<?php endif; ?>
有人可以幫我填補空白嗎? :)
很酷,這很有用。乾杯! – james6848 2011-04-17 21:11:16