Mostrando Links como pestañas
Este es un pequeño, y poco complicado hack que permitira darle estilo a tus links, la utilidad de esto nos ayuda a tener varios links que podemos añadir y borrar de una manera rapida y sencilla utilizando el widget que nos proporciona blogger, pero con un mejor estilo, podemos tener los links de manera horizontal o vertical, exactamente como las categorias.
Ahora bien, los pasos a realizar son los siguientes (basados en pestañas verticales):
Nos dirigimos a:
Plantilla--Elementos de la pagina
Luego clickamos en "Añadir un nuevo elemento de pagina" y seguidamente escojemos el widget "Lista de Vinculos"
Blogger le otorga un identificador a cada "widget" que nosotros creamos, dependiendo del numero de widgets que tengamos en nuestro blog, por ejemplo si fuera la unica "Lista de Vinculos" que tengamos en nuestro blog, el codigo seria el siguiente:
<b:widget id='LinkList1' locked='false' title='Links' type='LinkList'/>
Notese que el identificador corresponde a "LinkList1" el cual nos indica que es la primera Lista de Vinculos creada. (paso ya antes mencionado)
Ahora escogemos el estilo de las pestañas (verticales):
En este caso tenemos 14 diseños el cual nos los brinda csspicstock.blogspot.com, yo escogi el Menu4:
/*- Menu 4--------------------------- */
#menu4 {
width: 200px;
margin: 10px;
border-style: solid solid none solid;
border-color: #000;
border-size: 1px;
border-width: 1px;
}
#menu4 li a {
height: 32px;
voice-family: "\"}\"";
voice-family: inherit;
height: 24px;
text-decoration: none;
}
#menu4 li a:link, #menu4 li a:visited {
color: #CCC;
display: block;
background: url(http://photos1.blogger.com/blogg1600/menu4.gif);
padding: 8px 0 0 10px;
}
#menu4 li a:hover {
color: #FFF;
background: url(http://photos1.blogger.com/1600/menu4.gif) 0 -32px;
padding: 8px 0 0 10px;
}
El cual colocamos antes de ]]></b:skin>
Ahora si vamos a comenzar con lo mas complicado...
Nos dirigimos a:
Plantilla--Edicion de HTML--Expandir plantillas de artilugios
Buscamos el siguiente codigo:
<b:widget id='LinkList1' locked='false'
title='Links' type='LinkList'>
<b:includable id='main'>
<b:if
cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:links' var='link'>
<li><a
expr:href='data:link.target'><data:link.name/></a></li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
Y lo reemplazamos con el siguiente:
<b:widget id='LinkList1'
locked='false' title='Links' type='LinkList'>
<b:includable id='main'>
<div id='menu4'>
<b:if
cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:links' var='link'>
<li><a
expr:href='data:link.target'><data:link.name/></a></li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
Recordad que LinkList1 corresponde al identificador de la Lista de Vinculos (como antes mencionado)
Listo, Guardamos todos los cambios y ya tenemos nuestras links en forma de pestañas ;)








54 comments:
Tengo problemas, no me deja guardar la plantilla , me dice q no sta correcta
pd: no tengo mu claro lo de linklist, a mi me pone labe12 en vez de link list, tengo q cambair en el codigo cuando pone linklist x labe12 cada vez q salga?
Me ha servido mucho tu pagina web, y ahora quiero aplicar esto de laspestañas, porfavor me puedes ayudar ;
Primero si no te molesta de a pasos, voy a añadir una lista de vinculos y losprimeros codigos que me das, ¿donde los debo poner?... más que nada es eso, todavia no he pasado a "lo más difícil" que es al cambiar el codigo del html,, pero pormientras , me ayudas con esto?
HOLA MIRA ME SALE ESTE MENSAJE DE ERROR NO PUEDO! PONER LAS PESTAÑAS ME PODES AYUDAR
No se ha podido analizar su plantilla, porque no está bien formada. Asegúrese de que todos los elementos XML se han cerrado correctamente.
Mensaje de error de XML: The element type "div" must be terminated by the matching end-tag "
Simplemente cierren la etiqueta
/*- div que quedo abierta--------------------------- */
/*- colocando un /div despues de b:include name='quickedit --------------------------- */
Hola, asi tal como está el código saldrá ese mensaje de error: "No se ha podido analizar su plantilla..." pues como dice ese mensaje falta cerrar un elemento div. Ese elemento div que falta cerrar es el de la cuarta línea (el div que encierra al menu4). Así que una forma de resolver sería cerrarlo agregándole una barra oblicua -slash- despues de la comilla de cierre. Lo hice, ya no apareció el mensaje de error pero tampoco he visto cambio en mi blog, es verdad que aparecen ordenados verticalmente los links pero asi de una forma nada llamativa, nada estetica. Es decir ese codigo css (el famoso menu 4) que ha aportado, que ha hecho de bueno? no lo tengo claro.
revisa mi blog funciona, al final esta una larga lista que hice con este truco
Corrobore el código no hay ningún cambio aparte del que comente y que ya conoces bien, simplemente añadir el elemento < / div > en el lugar que indico, después de < b : include name=' quickedit ' / > y al lado del elemento < / div > que está presente en el código, con lo cual son dos elementos de cierre y no uno. De todas formas para que te convenzas visita el blog tengo el truco en dos listas de vínculos. Suerte y paciencia.
hola he seguido todos los pasos que me dices, primero el codigo de las pestañas y luego he cambiado el otro codigo he guardado y todo bien, pero en el blog nosalen las pestañas ¿me queda hacer algo mas? ayuda porfa
hola hice todo como mandabas y guarde y perfecto pero no me salen pestañas ¿queda algo por hacer? como salen las pestañas? gracias
Revisa mi blog y ve a administrar ese listado es como te deberían aparecer tus pestañas, por lo demás si hiciste todo deberá estar bien, revisa que tipo de pestañas escogiste.
este esta bien complicado XD
y si xxq no explica bien...
-.-
hola que tal como estas, estoy haciendo un blogger y ya me atore en algo me podrias ayudar porfavor, es solo una preguntita creo vque para ti eria sencillo responderme por que se nota que si sabes.Gracias
lucianoalberto1984@hotmail.com
Hey este metodo es buenisimo, de hecho hace pocos dias me lo enseñaron en una clase de la U pero es un poco complicado. Gracias a esta explicacion aqui me quedo un poco mas claro el ejemplo.
I like this post is very interesting and I didn't know to many things that you has written over here... It is fabulous!!!
I really want to learn more about it!
Hi, Nice idea,
good things,@@ There are many people searching about that,now they will find enough sources by your post.
We are looking forward for more details about that
Wow, nice post,there are many person searching about that now they will find enough resources by your post.Thank you for sharing to us.Please one more post about that..
There are may person searching about that now they will find enough resources by your post,
Hey, Great post **
Thank you for sharing to us.there are many person searching about that now they will find enough resources by your post.I would like to join your blog anyway so please continue sharing with us
hey buddy,this is one of the best posts that I’ve ever seen; you may include some more ideas in the same theme. I’m still waiting for some interesting thoughts from your side in your next post.
Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!
There are may person searching about that now they will find enough resources by your post,
Great information, you have a wonderful blog and an excellent article!!
カード現金化
I always enjoy reading such posts which provide knowledge based information like this blog. Keep it up.
Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Buy Albuterol
Glad to be part of your net community.
I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.
Nice to be visiting your blog again, it has been months for me. Well this article that I've been waited for so long
I really enjoy reding your posts as I learn a lot from them. I also broaden my thinking as far as what I can use and do with things
Your blog is very unique! I quite like this style! Nature is not an exaggeration! Clean and simple! You should also be a clean and clear man of the people!
Hello really such a great post admin keep posting such a interesting posts thanks for sharing this blog.
Lingerie
Hi i just want to say , well done. I impressed deeply with your writing skills, keeps on posting.
You know what are you discussing about and that's a great point.keep it up.
Hey must say such an interesting article it is. I just read it and i really appreciate your ideas. Thanks for sharing such a nice blog with us.
Online fitness course
Su artículo me súper pegado a leerlo por completo sin llevar a su fin lo que demuestra que su escritura y bases de información es realmente maravilloso. Se artículo informativo y agitación.
These articles are fantastic; the information you show us is interesting for everybody and Vermox 100mg really good written. It’s just great!!
Thank you for the info great! I try to watch what I regard as my body tries to digest, so I learn that I am bamboozled any damn time!
This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. Youve got a design here thats not too flashy, but makes a statement as big as what youre saying. Great job, indeed. new year 2012
Glad to see your blog as it is just what I’ve looking for and delirious to read all the posts.
No more worrying about singeing your hair extensions while baking cookies. A Dallas-based business known for its wigs and hairpieces is giving women the chance to let those cheap hair extensions sizzle.
auty & Hair has just released the HD Heat Defiant Collection by easihair, clip in hair extensions designed with a heat-resistant fiber withstanding 350 degrees that allows consumers to blow dry, flat iron and curl the Hair Extensions UK with heat tools.
Easihair’s new line has a smooth base made of ultra-thin monofilament ribbons that contain more hair than traditional human hair extensions systems.
It makes me feel so surprise.I never know there is such a wonderful place that ,I can find what I need,
Thanks a lot for enjoying this beauty blog with me. I am appreciating it very much! Looking forward to another great blog. Good luck to the author! all the best!
This is really a great post, well done and thank you for sharing it with us .
It is indeed wonderful to read your article. I appreciate your style.
I wonder how you got so good. This is really a fascinating blog, lots of stuff that I can get into. One thing I just want to say is that your Blog is so perfect!
bueno apara ser honestos, este truco es más díficil y creo que se requierem conocimientos más avanzados, por el momento creo que voy a pasar
I am glad that you posted does codes.Does codes are very useful to me.
Thank you for sharing this kind of important information. and especially for sharing your own experience with these.
Hey nice blog man, please keep up the good work!
A lot of interesting things found on your blogs, like the topic!
A very relevant information on this specific topic. An attractive way of presentation here. Thank you for your collective information.
didnt understand much this language but after translate with google translator i found pretty much cool thing, thanks for posting
Glad to visit this professional blog... I would love to learn more and more about technical and programming related things.. Great work!
Post a Comment