when using in Views / Node / Random feature
jwells - June 26, 2009 - 17:35
| Project: | Relevant Content |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Nicholas,
I'm having a problem (error code) when using this module in a View and that View is in a Panel.
The View is a Node View with Random as the Sort.
error code
warning: Invalid argument supplied for foreach() in /home/mysite.com/sites/all/modules/relevant_content/relevant_content_cck/relevant_content_cck.module on line 226.
I find this module very useful and a great tool in the tool box, so I don't want to turn it off and Content Type level.
Can you suggest a workaround?
Thanks

#1
Update:
Still trying to find a workaround.
Views offers both a Node & Teaser Option.
If Relevant offered a On / Off check box for Teasers, that might work.
I just don't know what Views considers a Teaser (lenght of content)
#2
Yeppie :-)
No error code, well at least 99% of the time.
I changed Views from Node to Teaser format
the other 1%, I think is a timing issue
either Views or Panels is loading before you, but that is just a guess
(jumping with joy here) I really like this module
I can't figure out why the user base isn't much much higher, probably because in the early Drupal days there were a few modules very much like this that were on the bugging side.
This one appears very solid - thanks :-)
#3
here is how it came out - Home Page / Panel / View / Random