Hello,

Is anyone else experiencing this:
the tabs for the Accessible Content page - In draft/Pending publication, Published, Unpublished, All - are displaying twice at the top.
One set appears directly below the I created, I last modified, I can edit, I can view tabs and the other set appears after two hard return 'lines'.

Initially, the duplication doesn't display when you go to the Accessible Content page for the first time after logging in - but after you click on one of the tabs, it appears after the page refreshes.
It doesn't seem to be related to users with multiple roles (i.e. will show up for users who only have one role that is granted permission to view the Accessible content page).

I'm using the Garland theme. Corresponding version of Revisioning as well.

Thanks in advance for any help,
dleong

Comments

rdeboer’s picture

How on earth ????

dleong’s picture

Uh-oh...that doesn't sound good.

dleong’s picture

Here's the source code for that particular section, if it helps. Although I know some html, I'm not a programmer:

      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
          <div class="breadcrumb"><a href="/_testsite/">Home</a> › <a href="/_testsite/accessible-content">Accessible content</a></div>                    <div id="tabs-wrapper" class="clear-block">          <h2 class="with-tabs">Accessible content</h2>          <ul class="tabs primary"><ul class="tabs primary clear-block">

<li class="active" ><a href="/_testsite/accessible-content/i-created">I created</a></li>
<li ><a href="/_testsite/accessible-content/i-last-modified">I last modified</a></li>
<li ><a href="/_testsite/accessible-content/i-can-edit">I can edit</a></li>
<li ><a href="/_testsite/accessible-content/i-can-view">I can view</a></li>
</ul>
<ul class="tabs secondary clear-block">
<li ><a href="/_testsite/accessible-content/i-created/pending">In draft/Pending publication</a></li>
<li ><a href="/_testsite/accessible-content/i-created/published">Published</a></li>
<li ><a href="/_testsite/accessible-content/i-created/not-published">Unpublished</a></li>
<li class="active" ><a href="/_testsite/accessible-content/i-created/all" class="active">All</a></li>

</ul>
</ul></div>          <ul class="tabs secondary"><li ><a href="/_testsite/accessible-content/i-created/pending">In draft/Pending publication</a></li>
<li ><a href="/_testsite/accessible-content/i-created/published">Published</a></li>
<li ><a href="/_testsite/accessible-content/i-created/not-published">Unpublished</a></li>
<li class="active" ><a href="/_testsite/accessible-content/i-created/all" class="active">All</a></li>
</ul>                    <div class="help"><p>Showing all content <em>you created</em> and still have at least view access to.</p>
</div>          <div class="clear-block">

rdeboer’s picture

Yep... that proves that what you see on your system is not a figment of your imagination... the HTML to duplicate the second row is actually there!
The only difference I can see at a glance is the upper occurrence of the second row of tabs is generated with ul style class of tabs secondary clear-block whereas the the bottom occurrence is using a style class of tabs secondary, i.e. without the clear-block.

If you flick to another theme, does that make a difference?
If you go to Site configuration >> Smart tabs and blank out the "Pages to include" text box, does that change anything?

dleong’s picture

Hi Rik,

removing the asterisk from the 'pages to include' box had no effect; however, changing themes from Garland to Blue Marine did remove the issue.
Replacing the asterisk into the text box and unchecking the checkbox for 'Allow Smart tabs to control tab behaviour' resolved the issue but then the functionality of the smart tab module is lost - esp. with the Accessible Contents page (i.e. secondary tabs selections are not remembered when switching primary tab selections).
Any further suggestions, please?

Thanks.

rdeboer’s picture

Thanks for your analysis work dleong!
The Garland theme does do some funky stuff that other core themes don't do. I am aware of this and thought I had covered it when developing Smart tabs. I did test with Garland, but maybe I've made a mistake.
I'll have to see if I can reproduce your findings. Will get back to you.
In the mean-time, will switching to another theme or when using Garland adding accessible-content* to the Pages to exclude list do it for you?
Regards,
Rik

dleong’s picture

Hi Rik,
Adding the accessible-content* to the Pages to exclude sections makes no difference. The only action which seems to suppress the duplication is unchecking the 'Allow Smart tabs to control tab behaviour' box. Hope this info is useful.

I'm hesitant to change themes at this point (when I'm so close to launching my organization's updated website) since I'm not sure what other consequences that might have on the other modules I use. For now, I'll exclude the accessible content feature from my production site.

Thanks for your assistance,
Dennis

rdeboer’s picture

Hi Dennis,
Your info is useful -- but so far not enough for me to reproduce the error. I just took a clean Drupal 6.15 core install, set the Garland theme, enabled Module Grants, Module Grants Monitor and Revisioning, set user permissions, created some content and pending content and ... everything is fine: no repeated row of tabs....
Can you think of anything on your install that's different from core and may have something to do with this?
Rik

dleong’s picture

Rik,

Thanks for trying. There's a few things that are different from the core installation - I'll have to go back to my installation notes to see if anything may be associated with this. Trouble is, I may not realize it even if I come across something, due to my limited programming skills.

I'll get back to you.

Thanks again,
Dennis

rdeboer’s picture

Title: Module Grants Monitor - Accessible Content tabs » Accessible Content tabs appear twice in some Garland installs

Hey Dennis,
Anymore info on this?

dleong’s picture

Hi Rik,

Sorry for not replying earlier...I been too busy with my other 'hats' to look into it further. Guess that's the problem with trying to maintain a website on the corner of the desk....(sigh)
The problem still exists on my sandbox site - I just haven't used the Module Grants monitor on my production site to avoid the problem. I've kept all the modules up to date as well (Module Grants, Revisioning, Smart tabs) and still using Garland theme.

Will try to find some spare time and do some digging - will let you know.

Thanks for reminding me ;-)
Happy Easter....

rdeboer’s picture

Status: Active » Postponed (maintainer needs more info)
mrfelton’s picture

Same problem for me, only this is with a custom theme that does exactly the same as what garland does regarding the tabs. Looking at the code in smart_tabs_fixes.inc, those fixes seem to be tied specifically to the garland theme, rather than to any theme that attempts to do what garland does. Can this be made more generic somehow?

rdeboer’s picture

Hi MrFelton,
As mentioned in #8 (regarding Garland) I have trouble reproducing the symptoms.
I may have more luck with your theme. Could you please send it to me (via my contact form if you like)? Or is it confidential?
Rik

ShutterFreak’s picture

Same here on a custom theme derived from Zen.

Here's the HTML code that is erroneously being generated and rendered a second time below the main <div id='tabs-wrapper'>:

<ul class="tabs secondary"><li><a href="/accessible-content/i-created/pending">In draft/Pending publication</a></li>
<li class="active"><a href="/accessible-content/i-created/published" class="active">Published</a></li>
<li><a href="/accessible-content/i-created/not-published">Unpublished</a></li>
<li><a href="/accessible-content/i-created/all">All</a></li>
</ul>
rdeboer’s picture

Still a mystery to me how this can happen. Sorry.

rdeboer’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
aidanlis’s picture

Status: Closed (cannot reproduce) » Active

This is happening for me too with the Cube theme, enabling smart_tabs I see two rows of tabs, disabling smart_tabs I don't.

aidanlis’s picture

Title: Accessible Content tabs appear twice in some Garland installs » Page tabs appear twice
StatusFileSize
new47.46 KB
rdeboer’s picture

@aidanlis, #19:
Thanks for the screenshot....
In your case it is not even the "Accessible content" menu..... strange...

aidanlis’s picture

Yeah, it's all secondary tabs on the site, pretty strange.

rdeboer’s picture

Status: Active » Closed (cannot reproduce)

Without any further clues I'm going to have to close this.
If necessary, please re-open with clear steps on how to reproduce.