Closed (fixed)
Project:
Content Profile
Version:
6.x-1.0-beta3
Component:
Base module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 15:40 UTC
Updated:
2 Feb 2009 at 18:12 UTC
I am trying to access content profiles body field (only) from user-profile.tpl.php, but without any luck so far. The devel module tells me there are no other arrays i can fetch other than uid and the full content profile rendition.
Will i need to create a custom sql query to get the body field? Can anyone help a beginner to perform this task?
Comments
Comment #1
stieglitz commentedWhen you created the content type did you leave the body field blank?
Comment #2
jooel commentedI'm not sure what you mean. The body field title is mandatory in content type creation, and there is nothing else to submit regarding the body field.
If you meant "when you created the [b]content[/b]: no i'm having data in that field but there is no array/element for content profiles body field, or any of its fields for that matter. Me guessing you'd have to create an SQL query manually.
Comment #3
jooel commentedThe readme was quite clear enough. I did something like the following:
Comment #4
jooel commented