Mecha versi 2.6.4 sudah dirilis!

Cara Memanggil Data XML Blogger

Tabel Konten
  1. Sebagai Nilai Atribut 
  2. Sebagai Teks 

Ada beberapa metode untuk memanggil data XML Blogger sehingga data tersebut dapat ditampilkan ke dalam HTML.

Sebagai Nilai Atribut 

Tambahkan namespace expr: pada setiap atribut yang ingin Anda gunakan sebagai kontainer untuk menampilkan data sebagai nilai atribut dengan nama setelah expr::

<a expr:href='data:blog.url'/>
<a expr:href='data:blog.url + "#hash"'/>

<a href='data:blog.url'/>
<a href='data:blog.url + "#hash"'/>

Hasil:

<a href='http://example.com'></a>
<a href='http://example.com#hash'></a>

<a href='data:blog.url'></a>
<a href='data:blog.url + "#hash"'></a>

Sebagai Teks 

Tampilkan data apa adanya dengan cara menuliskannya sebagai tag XML biasa:

<data:blog.url/>
<data:blog.url/>#hash

<b:eval expr='data:blog.url + "#hash"'/>

Hasil:

http://example.com
http://example.com#hash

http://example.com#hash

12 Komentar

IDKarir.id

Kupasin Slider post dan slider menu mobile ala google donk

Bob Marley

Saya naksir tool generator kode warnanya mas

Urdu Tubes

Salam,
can we use your sitemap for special label?
http://www.dte.web.id/p/daftar-isi-buku.html
at this page you added a sitemap for all posts on the blog,
can we show only posts from specific one or more labels
Please also check the TOC at this link
http://townoftwilight.blogspot.com/2012/02/advanced-blogspot-table-of-contents.html
this TOC code has many options to set sitemap
we can show easily posts from a specific label.
I also requested you already to help me to modify this sitemap as you are using by adding a posts from a single or more labels selected by user.
Can you help me?
I hope you will reply me. Thanks
Allah Hafez

Anonim

Salam mas taufik..
Maaf sedikit melenceng.. Apakah mungkin post view bisa dipanggil di blogspot?

arif

Mas kalo buat manggil label gimana?

arif

Saya sudah coba ini mas, tapi ga muncul label-nya.

Taufik Nurrohman

Harus ada di dalam postingan supaya bisa dipanggil.

<b:loop values='data:posts' var='post'>
  <div class='post'>
    <b:loop values='data:post.label' var='label'>
      Begini: <data:label.name/>
    </b:loop>
  </div>
</b:loop>

Komentar telah ditutup.