Sharing your blog on your site (#1034)

Got a website AND a blog? Show your latest blog entries on your website with these tools.

Sharing your latest blog entries on other websites is a great way to increase readership (both of your blog and your other sites). If you update your content often, your readers have a great reason to visit frequently. Showing the content from your blog on another site is as easy as pasting a special javascript into your site wherever you want that content to appear. (You can get that script using the form below.)

You can customize what shows up in the feed from your blog. For instance, you can choose how many entries to show, whether to show the date of your entries next to the link, and how long a summary you want to show (or if you want a summary to show at all). Simply fill out the form below to generate your script. Copy and paste the script from the resulting page into your code, and that's all you need to do.

Get the script for your feed


(Only include the folder name after blog.vcu.edu)
*
Leave blank if you do not want summaries to appear.

You can assign any ID you'd like to the container for your blog's feed. Just make sure that the empty container's ID matches what you put here.
Do you want to show the date?

Additional questions?

Is your blog missing an XML feed?

The first thing you should check is that you are using the correct URL for your blog. In the form above, you should only include the folder name for your blog and nothing else. (If your blog is located at http://blog.vcu.edu/smithja/ then you would only need to put smithja in the URL field.)

I've you've entered the correct URL, then your blog may not be publishing an index.xml RSS file. In this case, you can add an RSS Index template to your blog. If you're not comfortable doing this, you can contact the blog webmaster for help.

Do you want to use CSS to add more style to your blog feed?

Good news, the script that generates your feed includes several classes for CSS. Below you can see an example of the actual HTML code that the script generates so you can style your feed appropriately.

<div id="vcu_blog_feed">
<ul class="vcu_blog_list">
<li class="vcu_blog_item">
<a href="LINK" target="_blank">TITLE</a> <span class="vcu_blog_date">(MM/DD/YYYY)</span>
<p>SUMMARY...</p>
</li>
<li class="vcu_blog_item">
<a href="LINK" target="_blank">TITLE</a> <span class="vcu_blog_date">(MM/DD/YYYY)</span>
<p>SUMMARY...</p>
</li>
</ul>
</div>

Footnotes:

* To avoid the possibility of partial words being displayed, the script will automatically display only up to the last space before your chosen character limit. In other words, if your summary has a 50 character limit and your blog entry has an 8-letter word that starts at the 48th character, your summary would be cut off before that word.

This article was updated: September 03, 2009

Go Up

 

What is Technology Services?

Technology Services is responsible for implementing and supporting the technology used around campus, such as the network, phones, enhanced classrooms, and Internet-based systems including myVCU, Blackboard, email, and more.