Backup Widgets Template Data.


Backup Widgets Template Data.

New Visitor? Like what you read? Then please subscribe to my Blog Feed or sign up for Free Email Updates. Thanks for Visiting!
Widgets are the modules which make up the New Blogger Template. For more information see What are Widgets. However the data they carry to and from your blog displayed in browser to the Blogger database is kept separate. When you backup the template this data is not backed up. When you copy widget code to another blog the data is not transferred along with it. If you upload a template with widgets to your blog the widgets are added without the data they carry........
To backup your blog you should backup the template also as described in 
How to change Template. The widgets are also backed up along with the template. For example my Link List widget is backed up in the template as follows :


<b:widget id='LinkList2' locked='false' title='BLOG RESOURCES' type='LinkList'>
<b:includable id='main'>
<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target' target='_blank'><data:link.name/></a></li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget> 

However I have a long list of links within the widget which does not appear in it. They are retrieved from the Blogger Database the moment the blog is displayed in a browser using this code :
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target' target='_blank'><data:link.name/></a></li>
</b:loop>

To backup this link list, so that you need not type it out all over again should you require to change blog template, you have to look at the page source. For this open your blog in a browser and go to View---->Page Source(in Firefox) or View---->Source in Internet Explorer. The source file will open in Notepad and save this file as MyblogPageSource.txt. Scrolling down this file will give you the data in all the widgets in your blog. For example the Link List widget data appears as follows :

<div class='widget LinkList' id='LinkList2'>
<h2>BLOG RESOURCES</h2>
<div class='widget-content'>
<ul>
<li><a href='http://www.nutrocker.co.uk/3dheader.html' target='_blank'>3D HEADER</a></li>

<li><a href='http://www.google.com/addurl/?continue=/addurl' target='_blank'>ADD BLOG TO GOOGLE</a></li>
<li><a href='http://www.adfreeblog.org/' target='_blank'>ADFREE BLOG</a></li>
<li><a href='http://www.autopinger.com/' target='_blank'>AUTOPINGER</a></li>
</ul>
<div class='clear'></div>


Select only the links from the above code and copy and save to another Notepad file as LinksWidgetBackup.txt. See Below :

<ul>
<li><a href='http://www.nutrocker.co.uk/3dheader.html' target='_blank'>3D HEADER</a></li>

<li><a href='http://www.google.com/addurl/?continue=/addurl' target='_blank'>ADD BLOG TO GOOGLE</a></li>
<li><a href='http://www.adfreeblog.org/' target='_blank'>ADFREE BLOG</a></li>
<li><a href='http://www.autopinger.com/' target='_blank'>AUTOPINGER</a></li>


</ul>


Do this with other widgets to save their data.


Read more:
 http://www.blogdoctor.me/2007/03/backup-widgets-template-data.html#ixzz1eQwKEEKj

0 komentar: