Active
Project:
OpenPublish
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2010 at 03:19 UTC
Updated:
13 Jan 2016 at 10:29 UTC
Jump to comment: Most recent
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
Comment #1
irakli commentedYou 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.
Comment #2
pixelsweatshop commentedI 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?)
Comment #3
pixelsweatshop commentedI 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?
Comment #4
pixelsweatshop commentedJust 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?)
Comment #5
wcutiew commentednoone 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!
Comment #6
surendra77c commentedIn node.tpl.php write the below code to get the author name .
C:\xampp\htdocs\drupal7\themes\bartik\templates\node.tpl.php
print_r($node); // get list of all the variable like date , submitted date , author name , content type name etc .