My problem is with links created with the CCK link module. Specifically, none of my links are showing up. In my database under "node_field_link_data" all of the information for the links is there but on actual web pages the links do not show up.

One example can be seen at http://chibabeat.com/upper_float_mexican_bar_grill

Link data has been entered in for Website and Map Url's but there is no output on the page.

Also an example of the code I am using in contemplate is this one

<?php foreach ((array)$field_website_url as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>

I am absolutely lost on what is causing this problem. It seems like I have tried everything to get the links to appear again. Even if I change $item['view'] to $item['value'] it just returns "array"

Please someone help me with this problem.

Comments

mh86’s picture

does this problem still exists with the latest version?
normally the view variable shouldn't be an array...

mh86’s picture

ah, haven't see you are using 4.7 (there won't be any fixes to it any more...)
would be better to update to 5.x.
anyway, if the 'view' variable is an array, you have to iterate over it.

magnus’s picture

Status: Active » Fixed

No more info from original poster.
Active development is only done for the 6.x branch.

magnus’s picture

Status: Fixed » Closed (cannot reproduce)