Backup Widgets Template Data. ~ The Blog Doctor.
Loading...

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.

Technorati Tags:, , , ,

6 comments:

Col. B. Bunny said...

This came within a hair of answering the question that is uppermost in my mind. Once you copy your list of links and thus have a backup, how would you get those links back INTO the widget after, I suppose, some kind of disaster?

My real problem is how to take a list of links from a classic template (which is in the same format as the back up list acquired per your help above) and insert them in a Blogger layout widget. Or, say, what if I want to create a different blog entirely but port the links I've created with so much effort?

If you could help with this I'd be most grateful.

Vin said...

Col. B. Bunny,

Copy the source code for the links section and paste it in a Html Page Element.

Using this method you can port any widget from one blog to another without having to add it and customize it.

Col. B. Bunny said...

Thanks. I used a text element and the old links display nicely there.

Thanks for your help and such a quick one at that!

redkathy said...

Thank you so much Vin! I have added your link to my site ;-)

domain and hosting said...

Now I got a great widgets template from your post. Thanks for sharing.

Maranatha said...

Really good post, i didn't even know that backing up could be a good thing!! Thank you!

CLICK TO LEAVE A COMMENT..... :-)



Skip to top of post.

Search Blog Before Commenting

Loading...

Post a Comment

Please use the above search box to search this blog before posting your valuable comments.

Comments posted on Dummies Guide to Google Blogger (Beta) are moderated and will be approved only if they are on-topic and not abusive. Try not to include website URLs/links in your comments. You can email me : drbhatns at gmail dot com for any blogging question. Thanks,

Vin.

The Blog Doctor The Blog Doctor2 Blog Doctor Home

SUGGESTED READING

Tips On Blogger and Latest News.



Skip to top of post.