How do I create a "more by this author" block?

Events happening in the community are now at Drupal community events on www.drupal.org.
pkcho's picture

In OP 1.6, I had created a "More by this author" block which displayed other stories written by the same author as the current story being viewed.

Now that the author is a separate node and referenced via node reference, I'm having a difficult time duplicating that block.

I know there is an "author_articles" view, which displays when you click on the author's name, but when I place that block on the same page as an article, nothing shows up (it does not show other stories by the same author).

Anyone have a clue how I could create this in the OP 1.7?

Thank you.

Comments

One way I have done it

e2thex's picture

It require a new module Views Arguments Extras http://drupal.org/project/views_arguments_extras

Which will add a default option to arguments, that will pull from the current nodes cck fields (much like the built in default node id)

So if you set up an argument of Content:op_author, and then set the default to be the cck field op_Author it will pull all articles that have the same author.

Great! Thank you.

pkcho's picture

I'll try it tonight and let you know how it went.

Thanks again.

It worked perfectly.

pkcho's picture

Thank you!

Can't seem to get this working

dakke's picture

EDIT: solved, my mistake (silly me mixed up two different views ehem)

I did exactly what said in the previous post, yet it shows all the articles on the site rather than those of a particular author.

  • Settings: Provide default argument
  • Default argument type: : CCK field Value from Current Node
  • node reference
  • field_op_author
  • format: NID
  • delta: all
  • validation: basic

And all articles of the site are shown. What am I doing wrong here?

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: