Project:Featured Content
Version:6.x-1.0-beta3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Kristen Pol
Status:closed (fixed)

Issue Summary

Kristen,

Could you please consider making your module Views compatible?

We have about ten modules of 'related/similar/more like this' kind.
But none of them gives possibility for building similar node listings
via Views.

With Views we could use filters, theme it in easy way, use any field
what we want, sort a list in a different way, etc.

Similarity Objects module was very close - it has Views argument
for similarity based on terms and sorting option by similarity score.
But... the module is now abandoned... :(

These two things are needed:

1. Similarity argument for Views, based on common terms,
2. Sorting option by number of common terms for Views.

Thanks,
Szy.

Comments

#1

Although the original intent was to keep this module super "simple" for the non-technical or less technical user, I have been thinking about views integration. I was thinking about adding in some code as follows but I need to think about it more before I proceed:

1) create a few default views that could be leveraged by featured content blocks... these would be super simple, e.g.

arguments: nids (to be supplied by featured content module)
fields: node title linked to node

but could be edited or "cloned" and modified as desired

2) add to the block display options to allow you to choose a view to do the displaying

3) if someone were to choose one of the pre-built views (from #1) (or one that has been created that has the nids arguments), then the feature content module would determine what nodes should be shown based on all the block settings and then pass the nids as arguments to the view and have the view render the results

If I were to do something along these lines, I need to make sure it's not confusing since the target audience is still really users with limited technical knowledge. Perhaps it would be an advanced feature that is turned on via the admin interface.

Your request though sounds more like you want a plugin for views isn't rather than going through the featured content module. Is that correct? I have written a plugin before for views but it was a display plugin. I haven't looked into how to extend the sorting functionality.

Feedback is welcome!
Kristen

#2

I did some research and played around with the views group by module and you can sort by closest match (by terms)... Here's how:

http://www.kristen.org/content/use-drupal-views-group-module-show-closes...

Kristen

#3

Assigned to:Anonymous» Kristen Pol

#4

Category:feature request» support request
Status:active» closed (fixed)

I believe I have covered this in:

http://www.kristen.org/content/use-drupal-views-group-module-show-closes...

I have also added a views example module that has this "similar by terms" example in it:

http://drupal.org/project/views_examples

Have fun,
Kristen

nobody click here