Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any plans on adding support for Views? I would really like to be able to create a personalized news page with complete teasers for users, using views of the output of this module. Is that possible? Thanks.
Comments
Comment #1
danithaca CreditAttribution: danithaca commentedIt's possible, but I need to study the ViewsAPI first. Also, my priority is to add other features first such as using GA feedback or nodeapi. So if there's no other coder, this feature might not be added soon.
If you or other developers are interested in implementing this feature, you just need to use:
Comment #2
dwkitchen CreditAttribution: dwkitchen commentedSo to use this code in Views I did the following:
First a change to the module I removed the line
from history_rec_related() at line 94 and history_rec_recommended() at line 101 and inserted it into history_rec_block() twice at line 66 & 75.
I would propose that this is a change to the module
Then in my view I created an Argument for Nid and select 'Provide default argument -> PHP Code'
and used this code:
(don't use the php wraper in the text area)
David
Comment #3
JoeMcGuire CreditAttribution: JoeMcGuire commentedMy understanding is that views support needs to be added at the Recommender API level?
I've submitted a patch for the recommender API
#673786: add views support
Comment #4
danithaca CreditAttribution: danithaca commentedthanks!! due to some personal matters, i can't work on it now. but i'll get back to it as soon as possible. thanks.
Comment #5
jm.federico CreditAttribution: jm.federico commentedHello
I'll wait until recommender API gets views support and I'll review this issue then.
Comment #6
teelmo CreditAttribution: teelmo commentedI'm also interested in Views support
Comment #7
danithaca CreditAttribution: danithaca commentedfixed. see #673786: add views support.
for the D7 release, Views is supported too.