Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.