The
default markup tags <b:defaultmarkups> and
<b:defaultmarkup> allows you to replace or create default inclusions that will be specific to the current Blogger Template or Theme.
<b:defaultmarkups> and
<b:defaultmarkup> are two different XML tags for blogger.
<b:defaultmarkups> is used as a parent tag and
<b:defaultmarkup> is the child of its parent.
Syntax For Default Markup Tags:
Here it goes the syntax for
default markup tags used for blogger template development.
<b:defaultmarkups>
<b:defaultmarkup type='WIDGET_TYPE'>
</b:defaultmarkup>
</b:defaultmarkups>
In the above code widget type is the type of widget described under.
Key Points for Default Markup Tags:
These are some main key points for default markup tags.
- The tag <b:defaultmarkups> should preferably be located before </head> or </body>.
- The tag <b:defaultmarkups> can only contain tags <b:defaultmarkup> (without "s").
- The tag <b:defaultmarkup> (without "s") can only contain tags <b:includable>.
- Default Markup Tags cannot be nested.
Attributes for Default Markup Tags:
<b:defaultmarkups> cannot accept any attribute but
<b:defaultmarkup> only one attribute listed under with description.
| Attribute | Description | Strictness |
|---|
| type | The Type of widget for which the default markup tag is used. | Mandatory |
Example usage of Default Markup Tags:
These are some example code for default markup tags use for blogger theme development.
Marking The Profile Widget:
<b:defaultmarkups>
<b:defaultmarkup type='Profile'>
<b:includable id='main'>
<!-- New "main" inclusion code for the "Profile" gadget -->
</b:includable>
</b:defaultmarkup>
</b:defaultmarkups>
Tagging with multiple widgets:
<b:defaultmarkups>
<b:defaultmarkup type='Blog, FeaturedPost, PopularPosts'>
<b:includable id='main'>
<!-- New "main" inclusion code for the "Blog", "FeaturedPost" and "PopularPosts" widgets -->
</b:includable>
</b:defaultmarkup>
</b:defaultmarkups>
Multiple Inclusions inside one widget:
<b:defaultmarkups>
<b:defaultmarkup type='Blog'>
<b:includable id='main'>
<!-- New "main" inclusion code for the "Blog" widget -->
</b:includable>
<b:includable id='title'>
<!-- New "title" inclusion code for the "Blog" widget -->
</b:includable>
</b:defaultmarkup>
</b:defaultmarkups>
The webmaster can create common inclusions that can be called anywhere in the theme. For this, the value Common must be mentioned in a tag <b:defaultmarkup> (without "s") instead of a type of gadget. It is also via this system that the "Server" versions of the common inclusions can be modified.
Developer defined default markup:
<b:defaultmarkups>
<b:defaultmarkup type='Common'>
<b:includable id='MyMetaTags'>
<!-- New "MyMetaTags" inclusion code -->
</b:includable>
</b:defaultmarkup>
</b:defaultmarkups>
Final Thoughts:
That's all about default markup tags used in logger theme development.
Comments
Post a Comment