EE01

Elettronica e Open Source

Home Extensions
Extensions
Extensions - Modules PDF Stampa E-mail
Scritto da Administrator   
Mercoledì 11 Ottobre 2006 06:00
Article Index
Extensions
Components
Modules
Plugins
Languages
All Pages

Module - Joomla! Extension Directory Modules

A more lightweight and flexible Extension used for page rendering is a Module. Modules are used for small bits of the page that are generally less complex and able to be seen across different Components. To continue in our book analogy, a Module can be looked at as a footnote or header block, or perhaps an image/caption block that can be rendered on a particular page. Obviously you can have a footnote on any page but not all pages will have them. Footnotes also might appear regardless of which chapter you are reading. Simlarly Modules can be rendered regardless of which Component you have loaded.

Modules are like little mini-applets that can be placed anywhere on your site. They work in conjunction with Components in some cases and in others are complete stand alone snippets of code used to display some data from the database such as Articles (Newsflash) Modules are usually used to output data but they can also be interactive form items to input data for example the Login Module or Polls.

Modules can be assigned to Module positions which are defined in your Template and in the back-end using the Module Manager and editing the Module Position settings. For example, "left" and "right" are common for a 3 column layout.

Displaying Modules

Each Module is assigned to a Module position on your site. If you wish it to display in two different locations you must copy the Module and assign the copy to display at the new location. You can also set which Menu Items (and thus pages) a Module will display on, you can select all Menu Items or you can pick and choose by holding down the control key and selecting multiple locations one by one in the Modules [Edit] screen

Note: Your Main Menu is a Module! When you create a new Menu in the Menu Manager you are actually copying the Main Menu Module (mod_mainmenu) code and giving it the name of your new Menu. When you copy a Module you do not copy all of its parameters, you simply allow Joomla! to use the same code with two separate settings.

Newsflash Example

Newsflash is a Module which will display Articles from your site in an assignable Module position. It can be used and configured to display one Category, all Categories, or to randomly choose Articles to highlight to Users. It will display as much of an Article as you set, and will show a Read more... link to take the User to the full Article.

The Newsflash Component is particularly useful for things like Site News or to show the latest Article added to your Web site.



Ultimo aggiornamento Giovedì 08 Novembre 2007 14:49
 
  • Nokia Lumia 800 e Lumia 710, i migliori per chi sceglie Windows Phone 6 Feb 2012 | 3:15 pm

    Tra gli smartphone Windows Phone il Nokia Lumia 800 e il Lumia 710 sono le scelte migliori. Ci aspettavamo tuttavia di più dal produttore finlandese, considerando la stretta partenership con Microsoft. La linea di continuità a cui il mercato Windows Phone ci ha abituato nell'ultimo anno non è ancora stata spezzata.



  • SSD e videogiochi, come cambiano le prestazioni in Battlefield 3, F1 2011 e Rift 6 Feb 2012 | 9:30 am

    Per chi ama i videogiochi passare a un SSD non è necessariamente la scelta migliore, rispetto a cambiare la scheda grafica o la CPU. Le moderne unità a stato solido non aumentano la fluidità di gioco, ma offrono comunque alcuni vantaggi rilevanti.



  • La mela che rivoluziona il mondo 6 Feb 2012 | 7:50 am

    Anziana e iPad

    La mela è uno degli elementi costanti e ripetuti nella storia dell'umanità: un archetipo dell'evoluzione dell'uomo. Dal simbolo del peccato, la mela (nella traduzione latina) di Adamo ed Eva, la mela (pomo) della discordia, consegnata da Paride a Venere, la mela che Guglielmo Tell pose sulla testa del figlio, la mela di Newton e la mela di Biancaneve. Ci sono anche altri esempi, ma questi sono i più famosi. Ora ne possiamo aggiungere uno nuovo, quello della mela della Apple, vera rivoluzione del nuovo millennio.

    leggi…

  • Alla velocità della luce... 6 Feb 2012 | 1:38 am

    La scrittura di questo articolo nasce dalla lettura delle pagine del libro Fisica 2. Elettromagnetismo - ottica, di David Halliday e Robert Resnick, relative alla velocità della luce e anche dall'indubbio fascino che esercita un argomento del genere sugli studenti e non solo. Ho deciso quindi di proporre agli utenti di ElectroYou questo articolo in cui ripropongo quanto letto sul libro cercando anche di ripercorrere le "modalità" che gli studiosi del passato hanno impiegato ed introdotto per la misurazione della luce. Il tutto sarà preceduto da una breve trattazione riguardante la definizione di luce…

  • Web Stazione Meteo con Arduino [7] : Bug Fixing 5 Feb 2012 | 4:28 pm

    Rieccomi, il progetto è terminato, però durante il suo sviluppo, sono saltate all’occhio alcuni problemi o mancanze sia nel firmware, che nel sito e quindi in questo articolo volevo elencarle e spiegare brevemente come sono state risolte.

    Ecco rapidamente l’elenco:

    Dopo un giorno e mezzo di funzionamento la comunicazione con il sensore si interrompe. Monitor 16x1 troppo piccolo, se usato anche per la notifica dei problemi. Comunicazione in chiaro, nell’URL, dei dati (tra cui username e password) con il metodo GET. Poca flessibilità degli array di char. Necessità di stabilire una connessione e richiamare…

  • HP EliteBook 2560p, l'ultraportatile di qualità militare per lavorare comodi 5 Feb 2012 | 11:00 am

    Recensione - Test dell'EliteBook 2560p, l'ultraportatile HP indirizzato ai professionisti con display da 12,5 pollici e peso inferiore ai due chili. La qualità costruttiva è ineccepibile e l'autonomia molto buona.




EpP News

Elettronica per Passione - Forum

Top Cellulari