Ajaxed QT tab of Ajaxed views args problem
sarvab - May 11, 2009 - 09:19
| Project: | Quick Tabs |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
The url args you specify in the view tabs that is getting loaded via ajax of a parent QT block are not seen.
This patch just keeps track of the original url and sends it to the ajax qt render function to work around the problem.
| Attachment | Size |
|---|---|
| quicktabs.patch | 1002 bytes |

#1
This is a repatch that fixes a similar problem of args like '%#' of a single QT block of multiple views not getting set properly in the Drupal.settings object on initial load. (since the other tabs do not pass through quicktabs_render)
#2
#3
can you write the steps how to reproduce the problem?
#4
These are basically the steps I took:
1) Create an ajax QT block that has 3 views block both using arguments and a url reference in the arguments (%1)
2) Create another QT block exactly like the above with 3 different views
2) Create one more ajax QT block that has the above two QT blocks as its blocks
Since it only renders the first view (tab) of the first top level QT tab, all other views do not get their arguments sent to them properly.
#5
Can you make a patch against the current development version, as I get the following error when trying this patch: "Fatal error: Call to undefined function quicktabs_load() in C:\mysite\includes\menu.inc on line 410." But I am experiencing odd behavior with arguments if I reorder my tabs. Not good!
#6
Is this still a problem or has this been committed to CVS? I'm marking as critical, since any rearrangement of tabs receiving arguments creates broken tabs.
#7
I can confirm that this problem still exists in the dev version.
#8
Using the above patch on the development version (dated November 2009), I have the following problems. First, only part of the patch succeeds. Please see the attached screen shot for what fails.
Second I get the following error when trying to edit an existing quicktab:
Fatal error: Call to undefined function quicktabs_load() in C:\wamp\www\mysite.org\includes\menu.inc on line 410Can someone who is familiar with the module get this patch working with the latest development version of quicktabs? I can confirm the problem exists and is a serious issue for anyone wanting to use arguments with quick tabs of various contextual views. In my case, I am displaying related nodes based on the taxonomy term of the currently viewed node. This works okay until I make the taxonomy based view second in order for my quicktabs-- then the view fails to display.
#9
Correction: this is not critical, since the arguments work just fine without loading them with ajax. If you are using arguments with quicktabs, elect "load all at once" rather than using ajax to load the tabs separately. Hopefully both options will work with arguments in the future.