It seems that empty fields will still display if they are set to display a suffix. (They stop displaying if I delete the suffix.) Is there a known way around this?

If I understand field.tpl.php correctly, $item['view'] already includes the suffix. Is there a way to test the value of the field separately from the included suffix?

(Running Drupal 6.2)

(This may be poor etiquette. I reposted from the forums: http://drupal.org/node/258420)

CommentFileSizeAuthor
#2 preview.jpg50.02 KBsapark
#2 node.jpg10.13 KBsapark

Comments

dopry’s picture

Status: Active » Closed (fixed)

don't add content to display if you don't wnat it displayed. check the value before adding your suffix.

sapark’s picture

StatusFileSize
new10.13 KB
new50.02 KB

My site has a similar thing where it shows the empty prefixed and suffixed fields in the preview but not in the node. Can we get the preview of empty prefixed and suffixed fields to look like its node please?

Attached are my screenies.

yched’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Boy, those screenshots are horrible !
I cannot reproduce what you describe using latest 6.x-2-x, though.

sapark’s picture

I'll try 6.x-2-x. Thanks.