I'm actually trying to use the relationship field inside a velocity template. For instance, I have a content type named Blog Post and I also have a content type that is an author. The simple relationship setup is that each blog post has a single Author. A one to one relationship.
In my container or Widget Code I've been trying to map the content and print the name of the author on the page. Unfortunately, accessing the Author directly doesn't seem to give an data.
What I do get when I print out $author is a something like this com.dotmarketing.portlets.structure.model.ContentletRelationships@4f87fb2e
I'm not sure how to actually access this data in the container or widget code. The documentation provided only specifies the ability to pull the data given the identifier of the content but even within the container or widget code print $identifier gives nothing.