Good morning,
I know the macro sc_block_display to hide or show blocks. Is there something similar to hide or show pages?
Joe
Good morning,
I know the macro sc_block_display to hide or show blocks. Is there something similar to hide or show pages?
Joe
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.
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
Not sure if this will accomplish what you need, but here is how you can close all but the current tab, or all tabs…
[currentitem] = {sc_menu_item};
$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>”;
Hi bradk, hmm… thank you I will try to implement that, even though I don’t understand that
Joe