• Problems

    This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.

In order to create own widget we must know <b:includeable> and <b:include>.We will learn these as well.

Step one:specify type of widget to HTML

<b:widget id='HTML1' locked='false' title='Labels' type='HTML'>

  </b:widget>

Step two:Widget must contain <b:includeable> and <b:include>.Every widget must contain one <b:includeable> with id main , it is the first palce from execution of widget takes place.

e.g:
<b:widget id='HTML1' locked='false' title='Labels' type='HTML'>
    <b:includable id='main'>
   
    </b:includable>
  </b:widget>

Step three: Creating includable element :- Includable element is also built using <b:includable>.... </b:includable> tag with different id. We will write html code inside it.

For e.g:
<b:widget id='HTML1' locked='false' title='Labels' type='HTML'>
    <b:includable id='main'>
   
    </b:includable>

<b:includable id='jumb'>
<b>bold</b>
    </b:includable>
</b:widget>
Step four:Including includable element in main.It is done by using following tag:
<b:include name='jumb'/>
 Here name will be the id of includeable element

For e.g:

<b:widget id='HTML1' locked='false' title='Labels' type='HTML'>
    <b:includable id='main'>
    <b:include name='jumb'/>
    </b:includable>


<b:includable id='jumb'>
<b>bold</b>
    </b:includable>
</b:widget>

No comments:

Post a Comment