Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • YouTube Videos
  • Top Categories
  • Subscribe via Email
  • Ask A Question
  • Meet Dave
  • Home
  • HTML & Web Page Design
  • Incorporating data from Movable Type into your Web Pages

Incorporating data from Movable Type into your Web Pages

February 26, 2004 / Dave Taylor / HTML & Web Page Design, Wordpress Help / 2 Comments

This is a kinda tricky one, but it was based on some inspiration I got when working on my Real Life Debt Weblog: could I figure out a way to incorporate weblog data into non-blog pages? The answer is, yes!

For this experiment, I decided that I’d like to have a new sentence on the intuitive systems home page that always showed the two most recent entries in my intuitive life weblog…

The first step was to go into the administrative area of Movable Type (a great weblogging tool written by sixapart that I use to run five different weblogs), and click on the “Templates” button on the left, then chose “create new index template”.

The new page asked for the name of the new template, the target filename, and then offered an input box where I could enter the necessary HTML. I named the template “Latest Entries”, the file “latest-entries.html”, and added the following to the body:

<MTEntries lastn=”2″>
<a href=”<$MTEntryPermalink$>”><$MTEntryTitle$></a>,
</MTEntries>

That’s all that was necessary to create a new file that is now automatically updated and recreated each time a new weblog entry is submitted. Not too hard, eh?

On the index page itself – index.shtml – I added the following few lines of HTML:

Don’t forget to keep current on my weblog, where my latest
entries talk about
<!–#include virtual=”blog/latest-entries.html”–>
and much more. Just visit
<a href=”http://www.intuitive.com/blog/”>The Intuitive
Life</a> and please feel free to add your own comments too.

If you check out the index page you’ll see that the titles of the weblog entries just magically appear as if they were part of the regular typed-in material rather than automatically generated by Movable Type.

This is almost exactly the same technique I used on the Debtfree-Today Web site – a sister site to the real-life-debt site I mentioned earlier – to create an actual boxed element that has the latest five entries neatly listed in clickable form. If you can get this basic last-two-entries working, I’m sure you’ll be able to get the more complex solution to rock too.

About the Author: Dave Taylor has been involved with the online world since the early days of the Internet. Author of over 20 technical books, he runs the popular AskDaveTaylor.com tech help site. You can also find his gadget reviews on YouTube and chat with him on Twitter as @DaveTaylor.

Let’s Stay In Touch!

Never miss a single article, review or tutorial here on AskDaveTaylor, sign up for my fun weekly newsletter!
Name: 
Your email address:*
Please enter all required fields
Correct invalid entries
No spam, ever. Promise. Powered by FeedBlitz
Please choose a color:
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

2 comments on “Incorporating data from Movable Type into your Web Pages”

  1. Josh Carter says:
    October 27, 2005 at 6:20 pm

    Dave, this was a fantastic help! If I had known it was this easy, I would have added this feature to my site ages ago. I had gone down the rabbit hole of writing my own CGI script and everything, then thought, “you know, I bet Dave has a much simpler way of doing this…” So double thanks again.

    Reply
  2. 101PublicRelations.com says:
    February 26, 2004 at 7:23 pm

    Great stuff Dave! I’ve been planning to do this for months but procrastinated because I didn’t know how to pull it off. Once again, you’ve made life easier for me and about a million others. Thanks for another way to make our sites better!
    Don Crowther, http://101PublicRelations.com

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Recent Posts

  • Guide to Identifying and Blocking Off-Facebook Data Tracking
  • How Can I Share My Netflix Account With My Friend? [Updated for 2023]
  • How to Check Energy Recommendations on your Windows Laptop
  • How Do I Customize New Tab Windows in Safari for Mac?
  • Can AI-Generated ChatGPT Text Be Accurately Identified?

On Our YouTube Channel

How to: Replace a Switchbot Door Sensor Battery

EMEET Luna vs INNOTRIK Studio Bluetooth Speakerphones -- DEMOS & REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon, eBay, and Online Shopping Help (163)
  • Android Help (226)
  • Apple iPad Help (147)
  • Apple Watch Help (53)
  • Articles, Tutorials, and Reviews (346)
  • Auto Tech Help (15)
  • Business Advice (200)
  • ChromeOS Help (31)
  • Computer & Internet Basics (779)
  • d) None of the Above (166)
  • Facebook Help (384)
  • Google, Chrome & Gmail Help (188)
  • HTML & Web Page Design (247)
  • Instagram Help (49)
  • iPhone & iOS Help (623)
  • iPod & MP3 Player Help (173)
  • Kindle & Nook Help (99)
  • LinkedIn Help (88)
  • Linux Help (173)
  • Linux Shell Script Programming (89)
  • Mac & MacOS Help (911)
  • Most Popular (16)
  • Outlook & Office 365 Help (33)
  • PayPal Help (68)
  • Pinterest Help (54)
  • Reddit Help (19)
  • SEO & Marketing (82)
  • Spam, Scams & Security (95)
  • Trade Show News & Updates (23)
  • Twitter Help (220)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows PC Help (947)
  • Wordpress Help (206)
  • Writing and Publishing (72)
  • YouTube Help (47)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (62)

Archives

Social Connections:

Ask Dave Taylor


Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook



microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2023 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy