Hi all,
I am investigating the process of migrating a homegrown website powered by filemaker to a widely available CMS. Drupal is at the top of the list. Anyways, as part of the investigation, I have created a new content type on a 7.x install, such that it matches the relevant columns in the old filemaker database.
The new content type has two fields in particular, which for the sake of simplicity I will call media_directory and media_filename. The "media_directory" is supposed to correspond to a directory on the webserver and is unique to a given row in the old filemaker table. The "media_filename" is one file in this directory, but not the only one.
So now I'm attempting to theme my content type, and I am using a copy of the default field.tpl.php in my theme's directory. As you might have guessed, I need to create an image markup like:
〈img src=media_directory/media_filename /〉
(You might be thinking, why not just create a single field in the drupal content type like "media_image" that would be the equivalent of the two old columns? Alas, I cannot, for complicated reasons. )
So my initial stab at the problem was to:
(1) dump $element with print_r so I could pluck the variable holding the value for media_filename and sock it away.