Exclude selected tabs from detail page (if empty)

This topic contains 16 replies, has 9 voices, and was last updated by  nickd 8 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , , ,

  • Author
    Posts
  • #44972

    jkirker
    Lifetime Member
    Post count: 298
    #67593

    nickd
    Expired Member
    Post count: 4

    Hi Jkirker, if you are still looking for an answer to changing the default tab, you can do it by removing the current default tab:

    $new_tab_array[‘post_profile’][‘is_active_tab’]=”; //remove old default tab

    And registering the new one:

    $new_tab_array[‘reviews’][‘is_active_tab’]=’1′; //add new default tab

    So merged with Paolo’s code above, it looks like this:

    // here u can modify this array, u can create a completely new one too.
    if(isset($tab_array[‘reviews’])){
    $new_tab_array[‘reviews’] = $tab_array[‘reviews’];// set in new array
    $new_tab_array[‘reviews’][‘is_active_tab’]=’1′; //add new default tab
    unset($tab_array[‘reviews’]);//unset in old one
    }

    if(isset($tab_array[‘post_profile’])){
    $new_tab_array[‘post_profile’] = $tab_array[‘post_profile’]; // set in new array
    $new_tab_array[‘post_profile’][‘is_active_tab’]=”; //remove old default tab
    unset($tab_array[‘post_profile’]);//unset in old one
    }

Viewing 2 posts - 16 through 17 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket