HTML lấy dữ liệu của blog

Ads By Google

Tổng hợp một số thẻ Data lấy dữ liệu của blogspot để chúng ta áp dụng vào việc thiết kế giao diện blogspot, thông tin thẻ data như sau

HTML lấy dữ liệu của blog
Lấy tiêu đề hoặc title, thẻ alt
<data:post.title/>
Lấy link bài viết
<data:post.url/>
Lấy đoạn mô tả
<b:eval expr=’data:post.body snippet {length: 250, links: false, linebreaks: false}’ />
Lấy tên tác giả
<data:post.author.name />
Lấy hình thumb
<b:if cond=’data:view.featuredImage’>
    <img expr:alt=’data:post.title’ expr:src=’data:post.featuredImage resizeImage 359 resizeImage “3:2″‘ />
</b:if>
Chúc bạn thành công!

Ads By Google

ads nè