Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I have patched mine by replacing the following in scrolltext.module :
$sql = "SELECT n.title, n.nid FROM {node} n WHERE n.status = 1 and n.type IN ($scrolltext_nodetype) "
With:
//gives us access to the language variables
global $language;
$sql = "SELECT n.title, n.nid FROM {node} n WHERE n.status = 1 and n.language = '$language->language' and n.type IN ($scrolltext_nodetype) "
Comments
Comment #1
ianp-1 commentedI have patched mine by replacing the following in scrolltext.module :
$sql = "SELECT n.title, n.nid FROM {node} n WHERE n.status = 1 and n.type IN ($scrolltext_nodetype) "
With:
//gives us access to the language variables
global $language;
$sql = "SELECT n.title, n.nid FROM {node} n WHERE n.status = 1 and n.language = '$language->language' and n.type IN ($scrolltext_nodetype) "
Comment #2
smilterman commentedI tried this but when I replace it, scrolltext disappears.
Any suggestions?
Thnx
Comment #3
drupalnesia commented7.x-1.0-alpha3: Support Views as ScrollText source
D7 version of ScrollText supports Views, so this issue automatically solved. I will take a look for D6 version.