I'm working on a development site that uses the location module and after changing the street addresses in my demo from the real users' street to dummy ones (so I can demo it!) the data is showing the dummy values... (like in the user profile), Except for in my page .. Or node display ... That uses contemplate.

I cleared the cache and did a browser refresh. What am I missing?

Comments

yesct’s picture

I wanted to make sure it was not a location module problem... so I also updated the phone fields in the profile (using content profile module). The phone is stored as a text value. So I changed xxx-xxx-7083 to xxx-xxx-1234

And in almost everyplace, it updates to 1234 correctly.... except on the node I use content profile for... So I cleared the cache and did a search in phpmyadmin for 7083, and I found it! in the users table, in the data field!

How do I get the data field to notice the new info stored in the cck fields?

This old issue looked related, but maybe not quite the right match: #337182: Profile fields not updated in user data

yesct’s picture

I was (talking to myself) opening an issue in content profile (#417862: new data in cck profile fields not updated to the data field in the users table in the database) and I thought.. Maybe the old data is in the "data" field in the users database table, sure.. but maybe it is my bad that I'm accessing it! I did write the php in the content template!

maybe I need to do another [EDIT: node_load() not load_node()] to load the content profile node's cck fields...

what I have now is:


      $new_leader_node = user_load($leader_item['uid']);
    
......

      if (0 != strcmp($new_loc_node['postal_code'],"")) {
        print check_plain($new_loc_node['postal_code']); }
      // end get and print address
      if (0 !== strcmp($new_leader_node->field_displaythephone[0]['view'],"no")) {
        //echo "yes display the phone: ";
        foreach ((array)$new_leader_node->field_myphone as $myphone_item) {
          echo "<br>";
          print check_plain($myphone_item['value']);
        }  echo " ";
      } else {
        echo "<br>Phone not displayed. ";
      }

What would I use to load the fields from the content profile node instead of the table users, data?

yesct’s picture

content_profile_load()?

kenorb’s picture

Status: Active » Closed (duplicate)