By jimack on
I have a VERY simple template for a view.
<?php
if (($fields['field_company_nid']->content) != "") {
$sold = "sold" ;
} else {
$sold = "open";
}
?>
<li id="booth<?php print $fields['field_booth_value']->content; ?>" class="<?php print $sold; ?>" title="Booth <?php print $fields['field_booth_value']->content; ?> <?php print $fields['field_company_nid']->content; ?>">
<a href="<?php print $fields['field_booth_value']->content; ?>"><span><?php print $fields['field_booth_value']->content; ?></span></a>
</li>
It's working in Firefox 3.6 -
the source outputs correctly:
<div class="view-content">
<ul id="booths">
<li id="booth875" class="sold" title="Booth 875 XYZ Company">
<a href="875"><span>875</span></a>
</li>
<li id="booth867" class="nsx" title="Booth 867 ">
<a href="867"><span>867</span></a>
</li>
But in every other browsers (IE, Safari, Chrome, etc) it is missing all the php print fields????
<li id="booth" class="" title="Booth ">
<a href=""><span></span></a>
</li>
<li id="booth" class="" title="Booth ">
<a href=""><span></span></a>
</li>
Comments
maybe you are logged in in
maybe you are logged in in Firefox, but anonymous in the other browsers? Anonymous viewers may see a cached version of your page.
Clean your caches (theme cache, page cahce) and see if it works.
permission - didn't even
permission - didn't even think of that, thanks!