Skip to main content

Joomla! 3x

The static method JToolBarHelper:: title is used to add a title to the page of a Joomla! component on the admin side.

Esempio di titolo componente Joomla! lato admin

Typically the call is inserted in the file view.html.php with a piece of code like this:

JToolBarHelper::title ( JText::_ ( 'COM_COMPONENTNAME_XYZ' ), 'lamp' );

The first parameter contains the title, often localized using JText, the second parameter determines the ''image" that appears on his left. I put image between quotes because we will see that this is not a picture or even an icon. We will follow the evolution of this piece of PHP code:

JToolBarHelper::title ( 'HelloWorld manager', 'lamp' );

Will result in the most classic titles - Hello World Manager - flanked by a light bulb; in the face of this instruction, the HTML produced by the framework Joomla! is the following:

<h1class="page-title">
   <span class="icon-lamp"></span>HelloWorld manager
</h1>

An important thing to note, "Hello World manager" is out of the span tag.

Il metodo statico JToolBarHelper:: title viene usato per aggiungere un titolo lla pagina Joomla! del componente sul lato admin.

Esempio di titolo componente Joomla! lato admin

Tipicamente la chiamata viene inserita nel file view.html.php:

JToolBarHelper::title ( JText::_ ( 'COM_COMPONENTNAME_XYZ' ), 'lamp' );

Il primo parametro contiene il titolo, spesso "localizzato" usando JText, il secondo parametro invece determina "l' immagine" che appare alla sinistra. Ho messo la parola immagine tra apici perchè vedremo che non si tratta nè di una immagine nè una icona. Seguiamo l'evoluzione di questo codice PHP:

JToolBarHelper::title ( 'HelloWorld manager', 'lamp' );

L' HTML che ne deriva è il seguente:

<h1 class="page-title">
   <span class="icon-lamp"></span>HelloWorld manager
</h1>

Una nota importante, "Hello World manager" è fuori dal tag span.

Forkmeon is a Joomla! 3 Module usefull to publish a list of public GIT repositories of a particular user.

Fork me on Github

Supported Web-based Git repository hosting service

Forkmeon supports GitHub. To support others, such as BitBucket, it needs to implement related versions of /mod_forkmeon/helpers/gitrepo.php and /mod_forkmeon/helpers/gitrepos.php files.

Layout

Forkmeon comes with two kind of layout: default and microdata

Forkmeon è un modulo Joomla! utile per pubblicare una lista dei repository GIT pubblici di un utente particolare.

Fork me on Github

Web-based Git repository hosting service supportati

Forkmeon supporta GitHub. Per supportare altri servizi, come BitBucket, è necessario implementare la relativa versione del file PHP /mod_forkmeon/helpers/gitrepo.php e  /mod_forkmeon/helpers/gitrepos.php.

Layout

Forkmeon ha due layout diversi: default and microdata