labels - In Blogger, using linkwithin with specific posts -
i want show linkwithin widget label type in entry page (item).
i tried code accomplish it, not work.
<b:widget id='html7' locked='false' title='linkwithin' type='html'> <b:includable id='main'> <b:if cond='data:blog.pagetype == "item"'> <b:loop values='data:post.labels' var='label'> <b:if cond='label.name == "films"'> <data:content/> </b:if> </b:loop> </b:if> </b:includable> </b:widget>
updated answer (second try):
the previous answer using widgets , when loop of labels there, available labels of blog want post having.
so moved code different location in template , seems work should.
find <data:postlabelslabel/>
in template (80% down in template) , after closing </div>
contains tag copy following code:
<b:if cond='data:blog.pagetype == "item"'> <ul> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.name == "películas"'> <li> <data:content/> </li> </b:if> </b:loop> </ul> </b:if>
again need replace <data:content/>
html content find in dashboard > layout > linkswithin gadget.
you can delete linkswithin previous answer.
Comments
Post a Comment