Link not printing for IE

mhugos - October 31, 2009 - 19:34

In creating a photo gallery, I'm using a combination of ImageField, ImageCache, Thickbox, and Contemplate. I created a content type called "Photo Gallery" in which there is an ImageField field, called "field_photo." This field allows for multiple uploading of images. I've created a node of type "Photo Gallery" and have uploaded several images. The images are set to display as "Thickbox:thumbnail image" (I created a thumbnail definition in ImageCache.) In order to style the images, I'm modifying the body output using Contemplate.

Everything looks great in FF, but the images as links will not print out when I run in IE. The php code used is the default code for the body output in :

<?php
foreach ((array)$node->$field_photo as $item) {
?>

<?php
print $item['view']
?>

<?php
}
?>

If I hard code the link, it does appear in the source html for IE; if I use the variable, as above, it does not. For FF, it appears fine. I cannot figure out what is going on. Seems to be a server-side issue, but if so, what would be checking for IE vs. FF, and why? If it's a client-side issue, would IE actual edit out the HTML, and why? Seems highly unlikely.

Printing other variables within $field_photo works fine, such as $item['uid']. It's just the 'view' variable that doesn't want to print for IE.

I'm stumped. It's so bizarre. Does anyone have a suggestion as to what it could be, or other things I could try to track it down?

Thanks!!

Never mind!

mhugos - October 31, 2009 - 20:51

Just realized the problem was related to user permissions. I should know better by now, but now and then it really trips me up.

Is there a way to set a default for the content_permissions module so that all CCK fields are viewable by everyone?

m-hugos-gold

 
 

Drupal is a registered trademark of Dries Buytaert.