Announcement

Collapse
No announcement yet.

Is it possible to hide/show "pages" like it's possible with "blocks"?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to hide/show "pages" like it's possible with "blocks"?

    Good morning,

    I know the macro sc_block_display to hide or show blocks. Is there something similar to hide or show pages?

    Joe

  • Joe
    replied
    Hi bradk, hmm... thank you I will try to implement that, even though I don't understand that :-)
    Joe

    Leave a comment:


  • bradk
    replied
    Not sure if this will accomplish what you need, but here is how you can close all but the current tab, or all tabs...

    Menu - OnExecute
    ----------------
    [currentitem] = {sc_menu_item};

    Application - OnScriptInit
    --------------------------
    $tvar = [currentitem];
    // Hack to close all tabs except for current one
    // Tested on SC 8.1.032, but may break in future releases
    echo "<script>" . "parent.contextMenuCloseOthersTabs('" . "aba_td_" . $tvar . "');" . "</script>";
    // Or we can close all tabs using this
    //echo "<script>" . "parent.contextMenuCloseAllTabs();" . "</script>";

    Leave a comment:


  • Joe
    replied
    Sorry I forgot to mention that I display the pages and blocks as tabs. First register are the pages as tabs and under the pages are the blocks all as tabs. So If I have to hide all the blocks under one page it would be nice to hide the whole page tab.

    Joe

    Leave a comment:


  • aducom
    replied
    Actually I don't understand your question. Hiding pages, you mean that they cannot be found in the menu and cannot be selected? Then you need to look into the menu macro's of scriptcase.

    Leave a comment:

Working...
X