I have a news site and I created a view to show the most recent news article on the front page. I created a featured content block for the story nodes and that's great, it shows the most relevant news items for a viewed story. But is there a way I can do the same for my headline story on the main page that is selected by a view? How do I tell the featured content block to get the node from a particular view?

I know I could do this with another module, but I'd rather use the same module and get the exact same results and output for both individual story node pages and the front page headline node.

Regards,
David.

Comments

kristen pol’s picture

Assigned: Unassigned » kristen pol
Category: support » feature

Hi David,

That is a good use case.

I'm wondering how best for the FC module to know what nodes are coming from views. I suppose you would need to tell FC the name of the view you are using and it would have to run the view itself to get the results. Then go through the results and grab out the node ids.

I imagine I could get code working for this but right now I'm in crunch mode on a project so not sure how soon it could happen. The main reason I wrote FC was for users who don't know views at all or not very well, but maybe there are more users like yourself who'd like to leverage both FC and views.

I'm changing this to a feature request.

Thanks,
Kristen

kristen pol’s picture

Status: Active » Fixed

I have added a new option in the filter options: Views Filter Options

If you choose any of the views listed, then the nodes returned from those views will be used in the block.

Note that the module does not pass in any arguments to the view so only the arguments in the URL will be available (e.g. current node id).

David McMurray - I'm not sure this covers what you are trying to accomplish or not. Please let me know if you were wanting something different.

Thanks,
Kristen

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kristen pol’s picture

Assigned: kristen pol » Unassigned
Issue summary: View changes

cleaning up my issues list