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.

AttachmentSize
quicktabs.patch1002 bytes

#1

sarvab - May 11, 2009 - 09:30

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)

AttachmentSize
quicktabs.2.patch 1.59 KB

#2

sarvab - May 11, 2009 - 09:30
Status:active» needs review

#3

Pasqualle - May 11, 2009 - 12:27

can you write the steps how to reproduce the problem?

#4

sarvab - May 15, 2009 - 02:25

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

bomarmonk - October 29, 2009 - 07:42

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

bomarmonk - November 25, 2009 - 15:28
Priority:normal» critical

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

bomarmonk - November 29, 2009 - 07:20

I can confirm that this problem still exists in the dev version.

#8

bomarmonk - November 29, 2009 - 18:54

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 410

Can 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.

AttachmentSize
patch_quicktabs.jpg 65.33 KB

#9

bomarmonk - November 29, 2009 - 23:35
Priority:critical» normal

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.

 
 

Drupal is a registered trademark of Dries Buytaert.