Closed (duplicate)
Project:
Quick Tabs
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2012 at 14:53 UTC
Updated:
24 Jan 2013 at 16:43 UTC
I am using QT in a Drupal 7 website. I want to call an image in the Quicktab title instead of Nodetitle (which comes by default). There are only three tabs and I would like to replace their title by arbitrary images.
I am thinking if I can get to the title variable and change it to an image src, I will be able to achieve this.
Can someone tell me where can I find the node title variable in Quicktabs files? And can I replace it with an image variable - that I create as an imagecache field for that content type?
In short, call imagecache image instead of nodetitle. Anyone?
Thanks in advance.
Comments
Comment #1
hypo7675 commentedNeed help too.
G.
Comment #2
druvision commentedThis is an instance of a more general issue of how to show HTML on tab titles (http://drupal.org/node/894746). Try the patch there - does it work?
Comment #3
jeeba commentedSuscribing and trying the patch on #2
Comment #4
aascherson commentedI am about to go absolutely nuts over this. Seems so damn simple, but for some reason I CANNOT get the LINK (a) class within the tabs Li class to respond to css. I have the enclosing Li fitted to the right size, with a background image, but I cant get the link text to disappear and its enclosing span/div to fit to the size of the background image.
This should have been simple buts its driving me insane. Apologies if I sound frustrated, but I am sitting here looking at firebug telling me the link class has the correct width and height declared, (not crossed out by something else) yet the damn thing is not showing the right size. I am on d6.
Comment #5
aascherson commentedHere is example of code from firebug:
ul.quicktabs_tabs.quicktabs-style-garland li.active a {
width: 297px !important;
}
This shows the width of the active a item as 297, but its not. WTF? Any insight would be amazing.
Comment #6
vishalgala commentedI tried doing it with CSS and it worked. please find below the css code for the same:
Similarly you have to apply the css for all the 3 tabs which you created.
#quicktabs-acceralete_data_blocks ul li.first a {
background: url("../images/business-logics-bg.png") no-repeat scroll 10px 5px transparent;
color: white;
margin-right: -5px;
overflow: hidden;
padding: 0 0 100px 20px;
text-indent: -9999px;
white-space: nowrap;
width: 152px;