Jump to content

Drupal PHP Code


scotisle

Recommended Posts

Newbie question, sorry. I have a Drupal custom content type - "EXIF Image" that is posting metadata. It works, but I'd like to speed up the posting process by autopopulating the node title with metadata as well. I've enabled auto_nodetitle, but I'm stuck on the correct syntax for the PHP. I'm not a PHP progrmmer, and I don't even play one on TV. Could someone direct me to the correct syntax? I have a field__iptc_headline that I'm trying to reference. Not sure where the extra underscore came from, but it's working with EXIF module.

<?php
print render($content['field__iptc_headline']);
?>

Thanks so much! I cross-posted at Drupal and haven't gotten any replies.

 

Link to comment
https://forums.phpfreaks.com/topic/288525-drupal-php-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.