SlideShare a Scribd company logo
1 of 3
Inserire ultimi articoli su blogger


Se nel nostro blog sentiamo la necessità di visualizzare gli ultimi articoli postati,
possiamo utilizzare gadget che ti permette di inserire i link dei tuoi post automa
ogni volta che posti. Ci sarà una scorrimento di titoli con un numero reimpostato e
natu-ralmente modificabile. Per inserire il gadget in blogger andiamo su Desing >
Layout > Aggiungi gadget > Gadget HTML e incolliamo il seguente codice:




<span style="line-height:100%;Verdana&quot;,&quot;sans-serif&quot;font-
family:&quot;;font-size:12.0pt;"><script style="text/javascript">
function ultimipost(json) {
document.write('<ul>');for (var i = 0; i < numposts; i++) {
document.write('<li>');
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break;
}
}
posttitle = posttitle.link(posturl);
var readmorelink = "(leggi tutto)";
readmorelink = readmorelink.link(posturl);
var postdate = entry.published.$t;
var cdyear = postdate.substring(0,4);
var cdmonth = postdate.substring(5,7);
var cdday = postdate.substring(8,10);
var monthnames = new Array();
monthnames[1] = "Gen";
monthnames[2] = "Feb";
monthnames[3] = "Mar";
monthnames[4] = "Apr";
monthnames[5] = "Mag";
monthnames[6] = "Giu";
monthnames[7] = "Lug";
monthnames[8] = "Ago";
monthnames[9] = "Set";
monthnames[10] = "Ott";
monthnames[11] = "Nov";
monthnames[12] = "Dic";
if ("content" in entry) {
     var postcontent = entry.content.$t;
     } else if ("summary" in entry) {
     var postcontent = entry.summary.$t;
     } else
     var postcontent = "";
     var re = /<S[^>]*>/g;
     postcontent = postcontent.replace(re, "");
     document.write(posttitle);
     if (showpostdate == true) document.write(' - ' + cdday + ' ' +
     monthnames[parseInt(cdmonth,10)]+ ' ');
     if (showpostsummary == true) {
     if (postcontent.length < numchars) {
     document.write(postcontent);
     } else {
     postcontent = postcontent.substring(0, numchars);
     var quoteEnd = postcontent.lastIndexOf(" ");
     postcontent = postcontent.substring(0,quoteEnd);
     document.write(postcontent + '...' + readmorelink);
     }
     }
     document.write('</li>');
     }
     document.write('</ul>');
     document.write('<div id="crdt" style="font-size:70%;text-align:center"><p><a
     href="http://goo.gl/SEGfw">Get Widget</a></div>');
     }
     </script>
     <script style="text/javascript">
     var numposts = 18;
     var showpostdate = false;
     var showpostsummary = false;
     var numchars = 100;
     </script>
     <script
     src="http://www.cercosapere.it/feeds/posts/default?orderby=published&alt=json-in-
     script&callback=ultimipost"></script></span></div>



     Per personalizzare il gadget modificare le parti in rosso:


1.    Var numposts: rappresenta il numero dei titoli visualizzati

2.    var showpostdate: rappresenta la visualizzazione della data del post, modifica
     con TRUE se vuoi che sia visibile
3.    var showpostsummary: rappresenta la visualizzazione di una piccola anteprima
     del post, modifica con TRUE se vuoi che sia visibile

4.    var numchars: numero di caratteri dell’incipit

5.    Inserisci l’url del tuo blog e crea i feed su feedburner.com

More Related Content

Viewers also liked

CASE Award presentation
CASE Award presentationCASE Award presentation
CASE Award presentationKenon Man
 
The Colours of Pollution
The Colours of PollutionThe Colours of Pollution
The Colours of PollutionAlessio Cuccu
 
Rob dorscheidt zps finforum 2010
Rob dorscheidt zps finforum 2010Rob dorscheidt zps finforum 2010
Rob dorscheidt zps finforum 2010Rob DORSCHEIDT
 
E cote solutions ltd
E cote solutions ltdE cote solutions ltd
E cote solutions ltdcarsie
 
синеглазая гжель»
синеглазая гжель»синеглазая гжель»
синеглазая гжель»lubov17
 
Building your first Windows Phone 7 application for SharePoint
Building your first Windows Phone 7 application for SharePointBuilding your first Windows Phone 7 application for SharePoint
Building your first Windows Phone 7 application for SharePointJoris Poelmans
 
Izokin euskaldun baten istorioa
Izokin euskaldun baten istorioaIzokin euskaldun baten istorioa
Izokin euskaldun baten istorioaestiarozena
 
η πολη μου τα τρικαλα
η πολη μου τα τρικαλαη πολη μου τα τρικαλα
η πολη μου τα τρικαλαekokkoti
 
Advancedinterviewing
AdvancedinterviewingAdvancedinterviewing
Advancedinterviewingsylviaszabo
 
Technical notes for C_NES Foundation and Gwahati Medical College Presentation
Technical notes for C_NES Foundation and  Gwahati  Medical College Presentation Technical notes for C_NES Foundation and  Gwahati  Medical College Presentation
Technical notes for C_NES Foundation and Gwahati Medical College Presentation MobileDiagnosis Non Profit Association
 

Viewers also liked (18)

CASE Award presentation
CASE Award presentationCASE Award presentation
CASE Award presentation
 
prova
provaprova
prova
 
Grand Chase
Grand  ChaseGrand  Chase
Grand Chase
 
In-depth calendar
In-depth calendarIn-depth calendar
In-depth calendar
 
Md® all done 2014
Md® all done  2014Md® all done  2014
Md® all done 2014
 
The Colours of Pollution
The Colours of PollutionThe Colours of Pollution
The Colours of Pollution
 
Rob dorscheidt zps finforum 2010
Rob dorscheidt zps finforum 2010Rob dorscheidt zps finforum 2010
Rob dorscheidt zps finforum 2010
 
____
  ____  ____
____
 
E cote solutions ltd
E cote solutions ltdE cote solutions ltd
E cote solutions ltd
 
Testing 5
Testing 5Testing 5
Testing 5
 
синеглазая гжель»
синеглазая гжель»синеглазая гжель»
синеглазая гжель»
 
Building your first Windows Phone 7 application for SharePoint
Building your first Windows Phone 7 application for SharePointBuilding your first Windows Phone 7 application for SharePoint
Building your first Windows Phone 7 application for SharePoint
 
Izokin euskaldun baten istorioa
Izokin euskaldun baten istorioaIzokin euskaldun baten istorioa
Izokin euskaldun baten istorioa
 
η πολη μου τα τρικαλα
η πολη μου τα τρικαλαη πολη μου τα τρικαλα
η πολη μου τα τρικαλα
 
Advancedinterviewing
AdvancedinterviewingAdvancedinterviewing
Advancedinterviewing
 
Technical notes for C_NES Foundation and Gwahati Medical College Presentation
Technical notes for C_NES Foundation and  Gwahati  Medical College Presentation Technical notes for C_NES Foundation and  Gwahati  Medical College Presentation
Technical notes for C_NES Foundation and Gwahati Medical College Presentation
 
Presentazione S.V.A
Presentazione S.V.APresentazione S.V.A
Presentazione S.V.A
 
An Analysis of Italian Politicians Facebook Pages
An Analysis of Italian Politicians Facebook PagesAn Analysis of Italian Politicians Facebook Pages
An Analysis of Italian Politicians Facebook Pages
 

Similar to Inserire ultimi articoli su blogger

Luca Masini: Introduzione a GWT 2.0
Luca Masini: Introduzione a GWT 2.0Luca Masini: Introduzione a GWT 2.0
Luca Masini: Introduzione a GWT 2.0firenze-gtug
 
Javascript - 8 | WebMaster & WebDesigner
Javascript - 8 | WebMaster & WebDesignerJavascript - 8 | WebMaster & WebDesigner
Javascript - 8 | WebMaster & WebDesignerMatteo Magni
 
ASP.NET MVC 3 - Presentare i dati nella View
ASP.NET MVC 3 - Presentare i dati nella ViewASP.NET MVC 3 - Presentare i dati nella View
ASP.NET MVC 3 - Presentare i dati nella ViewManuel Scapolan
 
Introduzione a jQuery
Introduzione a jQueryIntroduzione a jQuery
Introduzione a jQuerySandro Marcon
 
Web Performance Optimization
Web Performance OptimizationWeb Performance Optimization
Web Performance OptimizationAlessandro Martin
 
Rich Ajax Web Interfaces in Jquery
Rich Ajax Web Interfaces in JqueryRich Ajax Web Interfaces in Jquery
Rich Ajax Web Interfaces in JqueryAlberto Buschettu
 
Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019
Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019
Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019Matteo Enna
 
Programmare Google Maps con Javascript
Programmare Google Maps con JavascriptProgrammare Google Maps con Javascript
Programmare Google Maps con Javascriptextrategy
 
Mantenere una distribuzione Drupal attraverso test coverage: Paddle case study
Mantenere una distribuzione Drupal attraverso test coverage: Paddle case studyMantenere una distribuzione Drupal attraverso test coverage: Paddle case study
Mantenere una distribuzione Drupal attraverso test coverage: Paddle case studyDrupalDay
 
Javascript - 4 | WebMaster & WebDesigner
Javascript - 4 | WebMaster & WebDesignerJavascript - 4 | WebMaster & WebDesigner
Javascript - 4 | WebMaster & WebDesignerMatteo Magni
 
Session 02 - schema design e architettura
Session 02 - schema design e architetturaSession 02 - schema design e architettura
Session 02 - schema design e architetturaMongoDB
 

Similar to Inserire ultimi articoli su blogger (20)

Luca Masini: Introduzione a GWT 2.0
Luca Masini: Introduzione a GWT 2.0Luca Masini: Introduzione a GWT 2.0
Luca Masini: Introduzione a GWT 2.0
 
Javascript - 8 | WebMaster & WebDesigner
Javascript - 8 | WebMaster & WebDesignerJavascript - 8 | WebMaster & WebDesigner
Javascript - 8 | WebMaster & WebDesigner
 
ASP.NET MVC 3 - Presentare i dati nella View
ASP.NET MVC 3 - Presentare i dati nella ViewASP.NET MVC 3 - Presentare i dati nella View
ASP.NET MVC 3 - Presentare i dati nella View
 
Perl Template Toolkit
Perl Template ToolkitPerl Template Toolkit
Perl Template Toolkit
 
Introduzione a jQuery
Introduzione a jQueryIntroduzione a jQuery
Introduzione a jQuery
 
Yagwto
YagwtoYagwto
Yagwto
 
Js intro
Js introJs intro
Js intro
 
Umarells
UmarellsUmarells
Umarells
 
Web Performance Optimization
Web Performance OptimizationWeb Performance Optimization
Web Performance Optimization
 
Rich Ajax Web Interfaces in Jquery
Rich Ajax Web Interfaces in JqueryRich Ajax Web Interfaces in Jquery
Rich Ajax Web Interfaces in Jquery
 
Form e HTML basi
Form e HTML basiForm e HTML basi
Form e HTML basi
 
Corso angular js componenti
Corso angular js componentiCorso angular js componenti
Corso angular js componenti
 
ReactJS for beginners
ReactJS for beginnersReactJS for beginners
ReactJS for beginners
 
Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019
Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019
Drupal diventa un CMF e WordPress che fa? Slide WordCamp Milano 2019
 
Programmare Google Maps con Javascript
Programmare Google Maps con JavascriptProgrammare Google Maps con Javascript
Programmare Google Maps con Javascript
 
Mantenere una distribuzione Drupal attraverso test coverage: Paddle case study
Mantenere una distribuzione Drupal attraverso test coverage: Paddle case studyMantenere una distribuzione Drupal attraverso test coverage: Paddle case study
Mantenere una distribuzione Drupal attraverso test coverage: Paddle case study
 
Programmazione Internet
Programmazione InternetProgrammazione Internet
Programmazione Internet
 
Javascript - 4 | WebMaster & WebDesigner
Javascript - 4 | WebMaster & WebDesignerJavascript - 4 | WebMaster & WebDesigner
Javascript - 4 | WebMaster & WebDesigner
 
Session 02 - schema design e architettura
Session 02 - schema design e architetturaSession 02 - schema design e architettura
Session 02 - schema design e architettura
 
Corso di php01
Corso di php01Corso di php01
Corso di php01
 

More from Stefano Vinci

Inserire articoli correlati su blogger
Inserire articoli correlati su blogger Inserire articoli correlati su blogger
Inserire articoli correlati su blogger Stefano Vinci
 
Understanding others
Understanding othersUnderstanding others
Understanding othersStefano Vinci
 
La natura umana cont a legg
La natura umana cont a leggLa natura umana cont a legg
La natura umana cont a leggStefano Vinci
 
Come far ricrescere i capelli cont a legg
Come far ricrescere i capelli cont a leggCome far ricrescere i capelli cont a legg
Come far ricrescere i capelli cont a leggStefano Vinci
 
Prevenire le malattie naturalmente
Prevenire le malattie naturalmentePrevenire le malattie naturalmente
Prevenire le malattie naturalmenteStefano Vinci
 
Corrupt politicians slideshare
Corrupt politicians slideshareCorrupt politicians slideshare
Corrupt politicians slideshareStefano Vinci
 
Politici corrotti slideshare
Politici corrotti slidesharePolitici corrotti slideshare
Politici corrotti slideshareStefano Vinci
 
Gli epici segreti per guadagnare con ebay senza spendere!
Gli epici segreti per guadagnare con ebay senza spendere!Gli epici segreti per guadagnare con ebay senza spendere!
Gli epici segreti per guadagnare con ebay senza spendere!Stefano Vinci
 
Insert latest articles on blogger
Insert latest articles on bloggerInsert latest articles on blogger
Insert latest articles on bloggerStefano Vinci
 
Paura di socializzare
Paura di socializzarePaura di socializzare
Paura di socializzareStefano Vinci
 
Aumentare la propria forza fisica
Aumentare la propria forza fisicaAumentare la propria forza fisica
Aumentare la propria forza fisicaStefano Vinci
 
Fare molte visite velocemente
Fare molte visite velocementeFare molte visite velocemente
Fare molte visite velocementeStefano Vinci
 

More from Stefano Vinci (20)

Pensiero positivo
Pensiero positivoPensiero positivo
Pensiero positivo
 
Inserire articoli correlati su blogger
Inserire articoli correlati su blogger Inserire articoli correlati su blogger
Inserire articoli correlati su blogger
 
Energia rinnovabile
Energia rinnovabileEnergia rinnovabile
Energia rinnovabile
 
Understanding others
Understanding othersUnderstanding others
Understanding others
 
Capire gli altri
Capire gli altriCapire gli altri
Capire gli altri
 
Human nature rea mo
Human nature rea moHuman nature rea mo
Human nature rea mo
 
La natura umana cont a legg
La natura umana cont a leggLa natura umana cont a legg
La natura umana cont a legg
 
Come far ricrescere i capelli cont a legg
Come far ricrescere i capelli cont a leggCome far ricrescere i capelli cont a legg
Come far ricrescere i capelli cont a legg
 
Prevenire le malattie naturalmente
Prevenire le malattie naturalmentePrevenire le malattie naturalmente
Prevenire le malattie naturalmente
 
Codici html
Codici htmlCodici html
Codici html
 
Corrupt politicians slideshare
Corrupt politicians slideshareCorrupt politicians slideshare
Corrupt politicians slideshare
 
Politici corrotti slideshare
Politici corrotti slidesharePolitici corrotti slideshare
Politici corrotti slideshare
 
Gli epici segreti per guadagnare con ebay senza spendere!
Gli epici segreti per guadagnare con ebay senza spendere!Gli epici segreti per guadagnare con ebay senza spendere!
Gli epici segreti per guadagnare con ebay senza spendere!
 
Insert latest articles on blogger
Insert latest articles on bloggerInsert latest articles on blogger
Insert latest articles on blogger
 
Fear of socializing
Fear of socializingFear of socializing
Fear of socializing
 
Paura di socializzare
Paura di socializzarePaura di socializzare
Paura di socializzare
 
Aumentare la propria forza fisica
Aumentare la propria forza fisicaAumentare la propria forza fisica
Aumentare la propria forza fisica
 
Fare molte visite velocemente
Fare molte visite velocementeFare molte visite velocemente
Fare molte visite velocemente
 
Introduzione
IntroduzioneIntroduzione
Introduzione
 
Guadagnare nel web
Guadagnare nel webGuadagnare nel web
Guadagnare nel web
 

Inserire ultimi articoli su blogger

  • 1. Inserire ultimi articoli su blogger Se nel nostro blog sentiamo la necessità di visualizzare gli ultimi articoli postati, possiamo utilizzare gadget che ti permette di inserire i link dei tuoi post automa ogni volta che posti. Ci sarà una scorrimento di titoli con un numero reimpostato e natu-ralmente modificabile. Per inserire il gadget in blogger andiamo su Desing > Layout > Aggiungi gadget > Gadget HTML e incolliamo il seguente codice: <span style="line-height:100%;Verdana&quot;,&quot;sans-serif&quot;font- family:&quot;;font-size:12.0pt;"><script style="text/javascript"> function ultimipost(json) { document.write('<ul>');for (var i = 0; i < numposts; i++) { document.write('<li>'); var entry = json.feed.entry[i]; var posttitle = entry.title.$t; var posturl; if (i == json.feed.entry.length) break; for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') { posturl = entry.link[k].href; break; } } posttitle = posttitle.link(posturl); var readmorelink = "(leggi tutto)"; readmorelink = readmorelink.link(posturl); var postdate = entry.published.$t; var cdyear = postdate.substring(0,4); var cdmonth = postdate.substring(5,7); var cdday = postdate.substring(8,10); var monthnames = new Array(); monthnames[1] = "Gen"; monthnames[2] = "Feb"; monthnames[3] = "Mar"; monthnames[4] = "Apr"; monthnames[5] = "Mag"; monthnames[6] = "Giu"; monthnames[7] = "Lug"; monthnames[8] = "Ago"; monthnames[9] = "Set"; monthnames[10] = "Ott"; monthnames[11] = "Nov"; monthnames[12] = "Dic";
  • 2. if ("content" in entry) { var postcontent = entry.content.$t; } else if ("summary" in entry) { var postcontent = entry.summary.$t; } else var postcontent = ""; var re = /<S[^>]*>/g; postcontent = postcontent.replace(re, ""); document.write(posttitle); if (showpostdate == true) document.write(' - ' + cdday + ' ' + monthnames[parseInt(cdmonth,10)]+ ' '); if (showpostsummary == true) { if (postcontent.length < numchars) { document.write(postcontent); } else { postcontent = postcontent.substring(0, numchars); var quoteEnd = postcontent.lastIndexOf(" "); postcontent = postcontent.substring(0,quoteEnd); document.write(postcontent + '...' + readmorelink); } } document.write('</li>'); } document.write('</ul>'); document.write('<div id="crdt" style="font-size:70%;text-align:center"><p><a href="http://goo.gl/SEGfw">Get Widget</a></div>'); } </script> <script style="text/javascript"> var numposts = 18; var showpostdate = false; var showpostsummary = false; var numchars = 100; </script> <script src="http://www.cercosapere.it/feeds/posts/default?orderby=published&alt=json-in- script&callback=ultimipost"></script></span></div> Per personalizzare il gadget modificare le parti in rosso: 1. Var numposts: rappresenta il numero dei titoli visualizzati 2. var showpostdate: rappresenta la visualizzazione della data del post, modifica con TRUE se vuoi che sia visibile
  • 3. 3. var showpostsummary: rappresenta la visualizzazione di una piccola anteprima del post, modifica con TRUE se vuoi che sia visibile 4. var numchars: numero di caratteri dell’incipit 5. Inserisci l’url del tuo blog e crea i feed su feedburner.com