1

I have a blog content type which has a field for authors- (these are pull from a separate content type). multiple values are allowed. i am trying to develop a module that will pull the authors email address and display it next to the authors name when ever a new author is added in the blog create form so users can edit the email on the fly while creating a new blog post.

i need some pointer as to the right hooks to use for these. Thanks in advance. See screenshot below of what am trying to archive enter image description hered

1 Answer 1

0

I've never used it myself -- but see Inline Entity Form which should allow you to reference an existing author, or implement that modules form controller class to show an author and email field to create the new author as needed.

Provides a widget for inline management (creation, modification, removal) of referenced entities. The primary use case is the parent -> children one (product display -> products, order -> line items, etc.), where the child entities are never managed outside the parent form. Existing entities can also be referenced.

From the README

Integrating with Inline Entity Form
-----------------------------------
An entity type can add support for this module by declaring the
inline entity form controller class in its entity info:

$entity_info['commerce_line_item']['inline entity form'] = array(
  'controller' => 'CommerceLineItemInlineEntityFormController',
);

The controller needs to extend EntityInlineEntityFormController and at least
override entityForm() to provide a function entity form.
1
  • Thanks his didnt achieve that out of box but with some customization using a custom module i was able to add this functionality using this module Commented Jul 23, 2013 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.