Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

The layout defines the composition of a page. A layout is comprised of multiple slots. Slots are defined containers that are able to contain Widgets. The quantity, position and dimension of these slots are what defines a template body. So template is the skeleton of a page, defining the distribution of Widgets that compose it through slots.

  

Estado
subtle

...

true
title

...

Learn more

HTML
<a id="toggleAll" href="#" >Expand/hide additional information. </a>
 <script type="text/javascript">
 
 var abertos = 0;
 var fechados = 0;
 function contador() {
    abertos = 0;
    fechados = 0;
    jQuery(".expand-control").each( function() {
		if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
           	fechados++;
        } else {
        	abertos++;
        }
    });
 }
 AJS.toInit(function() {
 
    contador();
	var soma = abertos + fechados;
	$("#toggleAll").html('Expand/hide ' + soma  + ' additional information.');

    AJS.$('#toggleAll').click(function() {
        contador();
        if (abertos >= fechados) {
            jQuery(".expand-control").each(
                function() {
                    if (document.getElementById(this.id).children[0].className == "expand-control-icon icon expanded") {
                        jQuery(this).trigger("click");
                    }
                }
            )
        } else {
            jQuery(".expand-control").each(
                function() {
                    if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
                        jQuery(this).trigger("click");
                    }
                }
            )
        }
    });
});
 </script>

 

...

 

Basic

Recommended for pages that do not require many slots for content display

...

The more space, the better. The contents of your intranet or portals get more emphasis, since this layout does not display the side menu

 

 

Informações
titlePlease note!

This documentation is valid from the 1.5.10 update. If you use a previous update, it may contain information different from what you see on your platform.