Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
6.x-0.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2008 at 14:44 UTC
Updated:
29 Sep 2008 at 22:44 UTC
HI,
How do I include data straight from my database into my contemplate template?
Also, how do I include data from a differenty content-type into my contemplate template?
I've researched everywhere. Thought I remembered seeing the solution a long time ago for an older version oof contemplate, but now, can't find it. anyway.
Help, please
Connie
Comments
Comment #1
conniec commentedHi all,
I've only found one way to add in a different content type, but it didn't work for me.
I want to add in a few fields from a different content type or
straight from the database.
Any help?
Connie
Comment #2
jrglasgow commentedto add data from another content type you need to use the node_load() function. With this function you can load all the alues from another node. i.e.
to add something from the database use the db_query() function
you can also use any function in the Drupal API
Comment #3
conniec commentedExactly what I needed. Thanks!
closing issue
Connie