
Loop Syntax:
<b:loop values='ARRAY' var='VARIABLE_NAME'>
<!-- Code to Be Executed Here -->
</b:loop>
Attributes used for b:loop tag
Attributes | Classification | Prefix "expr:" | Description | Strictness |
---|---|---|---|---|
values | XML Blogger Expression | authorized | Table arrayto extract in the loop. The expected value can be an explicit value, a data item or a Blogger expression whose type is array To create an expression, use: | Mandatory |
var | HTML classic | authorized | The expected value is any variable name that will contain the values of the items in the array. As an indication, in the gadget model supplied by default, Blogger engineering has chosen for most tables, the name of the table in the singular (without "s"). For example, the variable used for the array data:posts is post. | Mandatory |
index | HTML classic | authorized | The expected value is a character string. This attribute provides the index number in the loop. | Optional |
reverse | HTML classic | authorized | This attribute reverses the direction of the loop. The expected value must be boolean(boolean). Either true (true) or false (false). When this attribute is not mentioned the default value is false (false). The value can also be a Blogger expression, the result of which returns a Boolean value. Note: The attribute does not affect the numbering of the index. | Optional |
Get Items from an Array:
General Example:
<b:loop index='i' expr:reverse='data:view.isArchive' values='data:videos' var='video' >
<!-- INDEX -->
<data:i/>
<!-- ITEM -->
<data:video.itemName/>
</b:loop>
An Object Array - Example:
<b:loop values='data:posts' var='post' >
<!-- ITEM -->
<data:post.title/>
</b:loop>
A singleton Array - Example:
<b:loop values='["Mickey","Donald","Dingo"]' var='character' >
<!-- ITEM -->
<data:character/>
</b:loop>
how can i add a Floating Author Profile Revealer on blogger
ReplyDeletePlease wait for a while i will write article about it.
Deletehow can i hide sidebar from page????
ReplyDeleteContact me privately.
Deletebro plz write a post about how to hide sidebar on page in blogger plz...
ReplyDeleteHow Can I Hide Sidebar From Page????
ReplyDeletePLZ REPLY PLZ PLZ PLZ PLZ
Contact me privately dear on whatsapp.
DeleteSir can u please help me
ReplyDeleteWhen i installed template everything was fine but i started modifying it for various issues my site follow us option got completely destroyed and started looking ugly can u please help me out.
Mysite
Free version of all premium templates contains JavaScript code that does not allow editing of the theme. If you edit the theme, all the settings will be completely destroyed and theme styles also. You should buy the premium version to make changes into the theme.
DeleteShare a tutorial about the copy to clipboard system using on this blog.
ReplyDeleteOK dear Limon i will write article about it as soon as possible.
DeletePlease Read Select & Copy Text To Clipboard article.
DeleteIs vlog ki jeysha kyasa banai?
Deleteكيف ازود مشاهدات علي بلوجر
ReplyDeleteاستمر في مشاركة محتوى فريد بعد مرور بعض الوقت في ترتيب مدونتك. سأكتب مقالاً عنه قريباً.
Deletebro plz write a article about how to i add media.net ads on between post
ReplyDeleteOk wait for the next one!
DeleteCan we limit the the no. of loops?
ReplyDeleteIf you are talking about the number of iterations of the loop, yes you can limit the number of iterations.
DeleteCan you explain how?
DeleteI will be explaining after some time because at this time I am not free that why I am not even publishing new articles. Please wait.
DeletePost a comment
Was this article useful? Please Leave Your Feedback by writing what's in your mind, below.