jueves, 14 de febrero de 2008

PONER ÚLTIMOS POST EN TU BLOG

Con esta pequeña herramienta que colocaremos en nuestra sidebar (o donde nos dé la gana,jajaja) podremos hacer que nuestros lectores vean las últimas entradas o post que hemos añadido al blog.

Para ello, vamos a la plantilla y elementos de página (edición html/javascript) escribimos el siguiente código:

<script src="http://lejaniaimposible.googlepages.com/ultimospost.js "></script>
<script language="javascript">
var numposts = 10;
var numchars = 120;
var showpostdate = false;
var showpostsummary = true;
var standardstyling = true;
</script>
<script src="http://NOMBRE_DEL_BLOG.blogspot.com/feeds/posts/default?
orderby=published&alt=json-in-script&callback=showrecentposts"></script>



A continuación os explico cómo va el código, os lo descifro,jejeje:

- var numposts es el número de post que queremos que se muestren
- var numchars muestra la cantidad de letras que se verán.
- var showpostdate muestra la fecha si ponemos true (para no mostrarla escribimos false)
- var showpostsummary si queremos poner un famoso "leer más" (poniendo true se muestra, poniendo false no)
- var standardstyling son diferentes tipos de texto, normal o cursiva.

Y esto quedaría tal que así:





NOTA: Este post os lo puedo enseñar gracias al blog El escaparate de Rosa

7 comentarios:

Anónimo dijo...

Escribo para decirles que descubri una forma mas facil de hacer simplemente compias la dire "http://NOMBRE_DEL_BLOG.blogspot.com/feeds/posts/default?
orderby=published&alt=json-in-script&callback=showrecentposts"

reemplazas por el nombre de tu blog "NOMBRE_DE_TU_BLOG" una vez que copiaste vas al panel "aderir elemento a la pagina" o "add a page elemet" y elegiomos "feed" agregamos esta url y listo mucho mas facil

Anónimo dijo...

buena entrada, gracias me sirvio de mucho.

aqui te dejo mi blog para que lo visites:http://usuarionet.blogspot.com/

Anónimo dijo...

Greetings from Amiens, France.My name's Christine and I want to ask: do you have a spam problem on this page? I too am a blogger, and I was wondering about your condition. A group of us has used the time to formulate some techniques and we'd like to share ideas with fellow bloggers.
If you'd be interested, please get in touch with me via email.

Take a look at my blog connu

Anónimo dijo...

I'm a writer from Lake Placid, United States just sent this onto a colleague who is conducting some research on this. And she actually ordered me lunch only because I discovered it for her... lol. So allow me to paraphrase this.... Thanks for the meal... But anyhow, thanks for spending some time to write about this subject here on your site.

Visit my web page ... Helgoland

Anónimo dijo...

I just wanted to say that I found your blog on
and while I really liked checking out your entry, it seems your blog acts up
in a couple browsers. Whenever I have a look at
your site in Chrome, it looks fine however, when opening in IE, it has some overlapping problems.
I simply wanted to offer you with a quick bit of info, that's all.

My webpage :: http://esusalliance.Com/

Anónimo dijo...

Is it alright if I repost a few of your posts if I give credit and sources back to blogger.
com? My blog is on the exact same topic as yours and my readers could easily gain from some of the
knowledge you offer here. Please let me know if this would be fine.
Cheers

Feel free to visit my web site; www.ideiasdanessa.com.br

Anónimo dijo...

It's great that you took the time to write this, as it's an issue that is very
important to me. Where are your contact details though?
My name's Bridgette Ramey and I'd get into this more deeply.


Feel free to visit my webpage; thecreatorof.net