Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By jeffomac on
Hi... I don't remember if I'd asked this or not... or maybe I posted it in the wrong place...
I was just wondering if it was possible to pull in dynamic content via one of the CCK custom fields.
For example, if I made a field that was a text area... would I be able to paste in some type of php code that could pull in data from a table or something like that... or like from an external text file...
Just wondering if that's possible.
Thanks.
-Jeff
Comments
Not sure this is exactly what you want, but related
The CiviNode module basically does this. It brings in CiviCRM data into a CCK node. If the CiviCRM data changes, the CCK node display changes.
http://drupal.org/node/56661
Might give you some ideas.
David Geilhufe
Managing Partner, CivicSpace
Yes - this works
Configure your CCK text field so that you can use the PHP Code input format. Then enter the following:
The contents of the remote test.txt will show up in your CCK node.