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

  • #2
    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.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      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

      Comment


      • #4
        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>";

        Comment


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

          Comment

          Working...
          X