Web Trucos Blogger
Principal Administracion Feed del Blog
 

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:

ibai saenz saenz said...

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?

Catar-sis said...

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?

-MaRtYn- said...

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 "

Tamanco Art Factory said...

Simplemente cierren la etiqueta
/*- div que quedo abierta--------------------------- */
/*- colocando un /div despues de b:include name='quickedit --------------------------- */

TIENSJAEN said...

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.

Tamanco Art Factory said...

revisa mi blog funciona, al final esta una larga lista que hice con este truco

Tamanco Art Factory said...

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.

RAUL said...

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

RAUL said...

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

Tamanco Art Factory said...

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.

aamaakaay said...

este esta bien complicado XD

LuisChocobar said...

y si xxq no explica bien...
-.-

diSeÑoS rAnA said...

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

Viagra Online said...

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.

Certified publics accontants said...

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!

Generic Cialis said...

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

Generic Viagra said...

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..

Networking solutions said...

There are may person searching about that now they will find enough resources by your post,

オラセフ said...

Hey, Great post **

Primaquine said...

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

Generic Viagra said...

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.

careprost said...

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!

Seo Services India said...

There are may person searching about that now they will find enough resources by your post,

Generic Viagra said...

Great information, you have a wonderful blog and an excellent article!!

netde said...

カード現金化

Generic Drugs said...

I always enjoy reading such posts which provide knowledge based information like this blog. Keep it up.

Chris Suja said...

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.

Kamagra said...

I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.

Kamagra said...

Nice to be visiting your blog again, it has been months for me. Well this article that I've been waited for so long

Allegra said...

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

Generic Viagra said...

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!

Alok said...

Hello really such a great post admin keep posting such a interesting posts thanks for sharing this blog.
Lingerie

Rummy Card Game said...

Hi i just want to say , well done. I impressed deeply with your writing skills, keeps on posting.

cheap auto insurance said...

You know what are you discussing about and that's a great point.keep it up.

Racing said...

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

leather capris said...

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.

Generic Amoxil said...

These articles are fantastic; the information you show us is interesting for everybody and Vermox 100mg really good written. It’s just great!!

buy xanax online said...

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!

Singapore said...

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

Seo Expert Services said...

Glad to see your blog as it is just what I’ve looking for and delirious to read all the posts.

芯仪 said...

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.

Generic Viagra said...

It makes me feel so surprise.I never know there is such a wonderful place that ,I can find what I need,

Buy Stratterra said...

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!

Affordable Logo Design said...

This is really a great post, well done and thank you for sharing it with us .

iPhone Developer said...

It is indeed wonderful to read your article. I appreciate your style.

Buy Caverta said...

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!

Viagra Online without prescription said...

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

Gabriela Machador said...

I am glad that you posted does codes.Does codes are very useful to me.

Play Rummy said...

Thank you for sharing this kind of important information. and especially for sharing your own experience with these.

travel to jacksonville said...

Hey nice blog man, please keep up the good work!

viagra australia said...

A lot of interesting things found on your blogs, like the topic!

joomla developers said...

A very relevant information on this specific topic. An attractive way of presentation here. Thank you for your collective information.

SEO Services said...

didnt understand much this language but after translate with google translator i found pretty much cool thing, thanks for posting

cheap domain registration in india said...

Glad to visit this professional blog... I would love to learn more and more about technical and programming related things.. Great work!

Web Hosting en Mexico