Do It The jAPS Way
Copyright © 2011 Tzente s.r.l.
Legal Notice
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the Appendix entitled "GNU Free Documentation License".
2011-03-03
| Diario delle Revisioni | ||
|---|---|---|
| Revisione 0.3 | 2011-03-03 | MEM |
Revisione per il rilascio della 2.2.0 | ||
| Revisione 0.2 | 2010-03-19 | MEM |
Revisione per il rilascio della 2.0.10 | ||
| Revisione 0.1 | 2009-05-18 | DN |
Prima Bozza | ||
Estratto
Questo documento mostra come creare dei Tipi di Contenuto per un Portale istanziato da jAPS 2.0 entando.
Sommario
Lista degli Esempi
- 3.1. Contenuto generico
- 3.2. Notizia
- 3.3. Evento
- 3.4. Scheda Immagine
- 3.5. Scheda Download
- 3.6. Voce Elenco Telefonico
Questo documento mostra come creare Tipi di Contenuto per un Portale istanziato da jAPS 2.0 entando.
Questo documento è rivolto a chi si appresta a sviluppare un nuovo portale utilizzando jAPS 2.0 entando.
Per cui i destinatari sono esperti in interfacce grafiche per il Web e sviluppatori Java di media esperienza.
Al fine di trarre il massimo vantaggio da questo documento, è necessario avere un Piano Editoriale ben definito e le conoscenze di base per utilizzare l'ambiente di sviluppo, come spiegato nelle altre guide.
Ulteriori informazioni possono essere richieste attraverso la mailing list ufficiale Google Group "japs-platform".
Per mandare un messaggio ai membri della lista, invia una mail a <japs-platform@googlegroups.com>.
È inoltre possibile consultare la documentazione presente in:
Questo documento mostra come creare Tipi di Contenuto per un Portale istanziato da jAPS 2.0 entando.
Questo documento è rivolto a chi si appresta a sviluppare un nuovo portale utilizzando jAPS 2.0 entando.
Per cui i destinatari sono esperti in interfacce grafiche per il Web e sviluppatori Java di media esperienza.
Per poter utilizzare efficacemente le informazioni presenti in questo documento è necessario avere conoscenze di:
Al fine di trarre il massimo vantaggio da questo documento,
è necessario avere le conoscenze di base di XML,
oltre quelle per utilizzare l'ambiente di sviluppo, come spiegato nelle altre guide.
Ulteriori informazioni possono essere richieste attraverso la mailing list ufficiale Google Group "japs-platform".
Per mandare un messaggio ai membri della lista, invia una mail a <japs-platform@googlegroups.com>.
È inoltre possibile consultare la documentazione presente in:
Esempio 3.1. Contenuto generico
<contenttype typecode="CNG" typedescr="Contenuto generico"
viewpage="contentview" listmodel="11" defaultmodel="1">
<attributes>
<attribute name="Titolo" attributetype="Text"
indexingtype="text" searcheable="true"
required="true" />
<attribute name="Abstract" attributetype="Longtext"
indexingtype="text" />
<attribute name="CorpoTesto" attributetype="Hypertext"
indexingtype="text" />
<attribute name="Immagine_1" attributetype="Image" />
<attribute name="Immagine_2" attributetype="Image" />
<list name="Riferimenti" attributetype="Monolist"
nestedtype="Link" />
<list name="Allegati" attributetype="Monolist"
nestedtype="Attach" />
</attributes>
</contenttype>
Nell'esempio un Tipo di Contenuto Generico con Titolo, Abstract, CorpoTesto, due Immagini, una lista di Link e una lista di Allegati. Si può usare per contenuti generici per cui non serve una data o altri attributi particolari.
Esempio 3.2. Notizia
<contenttype typecode="NEW" typedescr="Notizia"
viewpage="newsview" listmodel="21" defaultmodel="2">
<attributes>
<attribute name="Data" attributetype="Date"
searcheable="true" required="true" />
<attribute name="Titolo" attributetype="Text"
indexingtype="text" searcheable="true"
required="true" />
<attribute name="Abstract" attributetype="Longtext"
indexingtype="text" />
<attribute name="CorpoTesto" attributetype="Hypertext"
indexingtype="text" />
<attribute name="Immagine" attributetype="Image" />
<list name="Riferimenti" attributetype="Monolist"
nestedtype="Link" />
<list name="Allegati" attributetype="Monolist"
nestedtype="Attach" />
</attributes>
</contenttype>
Nell'esempio un Tipo di Contenuto Notizia con Data,Titolo, Abstract, CorpoTesto, un Immagine, una lista di Link e una lista di Allegati. Si può usare per pubblicare delle notizie per cui un attributo fondamentale è la data di pubblicazione.
Esempio 3.3. Evento
<contenttype typecode="EVN" typedescr="Evento"
viewpage="eventview" listmodel="31"
defaultmodel="3">
<attributes>
<attribute name="DataInizio" attributetype="Date"
searcheable="true" required="true" />
<attribute name="DataFine" attributetype="Date"
searcheable="true" required="true" />
<attribute name="Oggetto" attributetype="Text"
indexingtype="text" searcheable="true"
required="true" />
<attribute name="DescrizioneBreve" attributetype="Longtext"
indexingtype="text" />
<attribute name="Descrizione" attributetype="Hypertext"
indexingtype="text" />
<attribute name="Immagine" attributetype="Image" />
<list name="Riferimenti" attributetype="Monolist"
nestedtype="Link" />
<list name="Allegati" attributetype="Monolist"
nestedtype="Attach" />
</attributes>
</contenttype>
Nell'esempio un Tipo di Contenuto Evento con una Data di Inizio, una Data di Fine, Oggetto, DescrizioneBreve, Descrizione, un Immagine, una lista di Link e una lista di Allegati. Si può usare per pubblicare degli eventi per cui attributi fondamentali sono le date di inizio fine evento.
Esempio 3.4. Scheda Immagine
<contenttype typecode="SIM" typedescr="Scheda Immagine" viewpage="photogalleryview" listmodel="41" defaultmodel="4"> <attributes> <attribute name="Immagine" attributetype="Image" required="true" /> <attribute name="Didascalia" attributetype="Text" searcheable="true" required="true" /> <attribute name="DescrizioneApprofondita" attributetype="Hypertext" searcheable="true" /> </attributes> </contenttype>
Nell'esempio un Tipo di Contenuto Scheda Immagine con un Immagine, Didascalia e Descrizione Approfondita. Si può usare per una fotogallery.
Esempio 3.5. Scheda Download
<contenttype typecode="SDL" typedescr="Scheda Download"
viewpage="dlview" listmodel="51" defaultmodel="5">
<attributes>
<attribute name="Oggetto" attributetype="Text"
indexingtype="text" searcheable="true"
required="true" />
<attribute name="DataInserimento" attributetype="Date"
searcheable="true" required="true" />
<attribute name="DescrizioneBreve"
attributetype="Hypertext" indexingtype="text"
required="true" />
<attribute name="Descrizione" attributetype="Hypertext"
indexingtype="text" />
<attribute name="Immagine" attributetype="Image" />
<attribute name="File" attributetype="Attach"
required="true" />
<list name="Riferimenti" attributetype="Monolist"
nestedtype="Link" />
</attributes>
</contenttype>
Nell'esempio un Tipo di Contenuto Scheda Download con Oggetto, Data di Inserimento, Descrizione Breve, Descrizione, un Immagine, un File e una lista di Link. Si può usare per dei file da scaricare.
Esempio 3.6. Voce Elenco Telefonico
<contenttype typecode="VEL" typedescr="Voce Elenco Telefonico" viewpage="contactview" listmodel="61" defaultmodel="6"> <attributes> <attribute name="Ruolo" attributetype="Text" indexingtype="text" searcheable="true" /> <attribute name="Cognome" attributetype="Text" indexingtype="text" searcheable="true" /> <attribute name="Nome" attributetype="Text" indexingtype="text" /> <attribute name="Foto" attributetype="Image" /> <attribute name="eMail" attributetype="Text" indexingtype="text" /> <attribute name="Tel_Interno" attributetype="Text" indexingtype="text" /> <attribute name="Cell_Servizio" attributetype="Text" indexingtype="text" /> <attribute name="Cell_Personale" attributetype="Text" indexingtype="text" /> <attribute name="Fax_Servizio" attributetype="Text" indexingtype="text" /> <attribute name="Fax_Personale" attributetype="Text" indexingtype="text" /> </attributes> </contenttype>
Nell'esempio un Tipo di Contenuto Voce Elenco Telefonico con Ruolo, Cognome, Nome, Foto, eMail, Telefono Interno, Cellulare di Servizio, Cellulare Personale, Fax di Servizio, Fax Personale. Si può usare per una rubrica di Dipendenti.
