Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using ajax only the first tab is loaded. Clicking on the other tabs there is a text saying content is loading, but then replaced by nothing. Enabling "Use Ajax" within each view does not change it unlike same issue for D7.
Comment | File | Size | Author |
---|---|---|---|
#14 | views-settings.png | 43.1 KB | plague |
#5 | ss.png | 12.48 KB | marassa |
#3 | ajax-quick-tabs.png | 35.24 KB | Bala.addweb |
#3 | quicktabs_example.png | 28.37 KB | Bala.addweb |
Comments
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI get this . In addition I get the following JS errors:
In my logs I get the following quicktabs error:
Comment #3
Bala.addweb CreditAttribution: Bala.addweb at AddWeb Solution Pvt. Ltd. commentedI do the same but it works fine for me. PFA screenshots.
Comment #4
AndKar CreditAttribution: AndKar commentedI experience the same problem with views that take a argument.
For me it works to load views with ajax if the view doesn’t use arguments.
Comment #5
marassa CreditAttribution: marassa commentedPlease try the following:
1. Install the patch from here: https://www.drupal.org/project/quicktabs/issues/2873253
2. Make sure you specify your arguments in the quicktab setup (see screenshot). Keep in mind that the first argument (like '333' in '/node/333') will be %2 (don't ask me why:).
3. Flush the cache.
Comment #6
shelaneComment #7
Firnas CreditAttribution: Firnas as a volunteer commentedWhen the ajax request for loading a new tab is made, I can notice the following error in the db log:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "path.alias_manager". Did you mean this: "path_alias.manager"? in Drupal\Component\DependencyInjection\Container->get() (line 151 of /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php).
I noticed this is mentioned in (quicktabs/src/Plugin/TabType/ViewContent.php) line 89
Comment #8
Firnas CreditAttribution: Firnas as a volunteer commentedFYI..I was using 8.x-3.0-alpha4 when I posted my earlier comment .. now I can see this is resolved in dev version 8.x-3.x-dev.. and it works fine for me now.
Comment #9
Meerachandran CreditAttribution: Meerachandran commentedI am using the latest dev version, and my views have contextual filter, and turned ajax on. The seond view block is not loading when using ajax inside quicktab.
Comment #10
jukka792 CreditAttribution: jukka792 as a volunteer commentedI have also the latest dev, and the quick tabs are only showing the first tab when ajax is enabled.
When the ajax is disabled in the quictabs settings, the tabs are showing content.
All of the tabs have views with same argument, and all views have ajax enabled.
In the html source I see only "Loading content ..."
I have content: /group/33/ so the argument is %2, but this argument is not needed when ajax is not used.
Comment #11
VasiliyRepin CreditAttribution: VasiliyRepin commentedI have at the same problem.
I have also Version:
8.x-3.x-dev, and the quick tabs are only showing the first tab when ajax is enabled.
When the ajax is disabled in the quictabs settings, the tabs are showing content.
All of the tabs have views with same argument, and all views have ajax enabled. And I made this Views as block and choosen in QT setting without arguments - There are no changes, ajax not works.
I have content: /taxonomy/term/1/ so the argument is %3, but this argument is not needed when ajax is not used.
And my View has contextual filter "Content has Taxonomy Term id from url"! Thanks to my View I have content category system,
/taxonomy/term/1/ will contain Quick Tabs and QT must displays some entities.
It's basic functionality in my opinion, but ajax not works(((
P.S. Thank you very much for this module!
Comment #12
jukka792 CreditAttribution: jukka792 as a volunteer commentedI have still the same problem, but now I found out that it depends what kind of views argument you are using.
If the argument is for example "get User ID from the logged in user", then the quictabs is working with ajax, all the tabs are loading.
But when the argument in the views is "take raw value from URL" and putting anything to quicktabs arguments like %1 or arg1 it
does not load the second tab. So in my case the argument is the User ID from the URL, not the logged in user ID " /user/34 "
So again, if I change the views getting the ID from logged in user, the second tab is shown.
Comment #13
lubwn CreditAttribution: lubwn commentedYeah I can confirm this is still an issue. Solved it by disabling ajax for quick tabs so my views can take arguments from URL. Kind of a bummer but it works.
Comment #14
plague CreditAttribution: plague commentedI faced the same problem with static arguments in quicktabs. It depends on setting of Contextual Filter in Views Display. Try to change option "When the filter value is NOT available" on "Display all results for the specified field".
It appears because this line https://git.drupalcode.org/project/quicktabs/-/blob/8.x-3.x/src/Plugin/T... return empty result when you chose not a "Display all results for the specified field".