I just wondering how i go about adding the default OP author information (displaying author image, title and bio) to a content type that I have created (Not stock with OP)?

Comments

irakli’s picture

Status: Active » Fixed

You need to add a node reference field pointing to author content type. If you want the cool plus-button popup, you need to also configure node relationship for that field once you have added the node reference.

Check Article content type if you need to see how it's done.

pixelsweatshop’s picture

I have done that an all that shows is "Author - THIS IS A AUTHOR TPL from module folder". (Also, I am using the default product content type that comes with ubercart, if that makes a difference?)

pixelsweatshop’s picture

I have also tried to add the author info to te event content type and I get the same thing. I am going to assume that there is something that I need to put in the node.tpl for each of these node types?

pixelsweatshop’s picture

Status: Fixed » Active

Just wondering if there was anyway of creating a redeployable "author block" so that it can be placed on any content type to utilize the default OP author fields (and show author info?)

wcutiew’s picture

noone ever answered this question about "THIS IS A AUTHOR TPL from module folder" showing up on the author page instead of the content about the author. can someone please explain what to do? Thx!

surendra77c’s picture

Issue summary: View changes

In node.tpl.php write the below code to get the author name .

C:\xampp\htdocs\drupal7\themes\bartik\templates\node.tpl.php

  if ($node->type == 'article') {
 echo '<b>Authored by : </b>'; print($node->name);
}

print_r($node); // get list of all the variable like date , submitted date , author name , content type name etc .