MTEntry

Another plugin I wrote while testing MTMoreLikeThisFromOthers . As before, I figured people could get some use out of this.

Here is an example of its use:

<MTEntry id="118">
<$MTEntryTitle$><br />
<$MTEntryBody$>
</MTEntry>

Download entry.tar.gz or entry.zip, unpack it, and place entry.pl in your plugins directory.

MTEntry

  • Container tag for one specified entry
  • Arguments:
    • id: the entry id to use ( required )

ChangeLog:

  • Version 0.25: Now supports embeded MT Tags in the [MTTag attr="something"] format for the id argument
  • Version 0.15: Fixed to work with MTEntryDate and MTEntryIf tags
  • Version 0.12: Fixed to work with DB sites as well
  • Version 0.1: First version

template_tags=MTEntry

13 TrackBacks

Entry from MT Plugin Directory on December 19, 2002 10:42 PM

Any MTEntry* tags should work in this container. Read More

MTEntry Plugin from ETC. Indulging my inner geek on January 20, 2003 12:38 PM

A new plugin for MovableType from David Raynes is the MTEntry Plugin. This plugin creates a tag for one specified Read More

News Roundup from hebig.org/blog on January 25, 2003 2:50 PM

The News Roundup for the last days, covering Movable Type, Trackback and related technologies, content syndication, web building notes and this and that Read More

News Roundup from hebig.org/blog on January 25, 2003 2:53 PM

The News Roundup for the last days, covering Movable Type, Trackback and related technologies, content syndication, web building notes and this and that Read More

News Roundup from hebig.org/blog on January 25, 2003 2:58 PM

The News Roundup for the last days, covering Movable Type, Trackback and related technologies, content syndication, web building notes and this and that Read More

linking to a particular entry from Al-Muhajabah's Movable Type Tips on March 15, 2003 4:13 AM

You may want to draw your visitors' attention to some of your past entries. Some people use an early entry in their blog for an "about me" page. Or you may have put a lot of time and effort into... Read More

Autor: David Raynes http://rayners.org/ Download und Dokumentation: http://www.rayners.org/archives/000121.php Kurzbeschreibung: Leider kann MT mit Bordmitteln nicht gezielt einen oder mehrere Einträge anhand der ID anzeigen (diese ID ist übrigens iden... Read More

Autor: David Raynes http://rayners.org/ Download und Dokumentation: http://www.rayners.org/archives/000121.php Kurzbeschreibung: Leider kann MT mit Bordmitteln nicht gezielt einen oder mehrere Einträge anhand der ID anzeigen (diese ID ist übrigens iden... Read More

Autor: David Raynes http://rayners.org/ Download und Dokumentation: http://www.rayners.org/archives/000121.php Kurzbeschreibung: Leider kann MT mit Bordmitteln nicht gezielt einen oder mehrere Einträge anhand der ID anzeigen (diese ID ist übrigens iden... Read More

BB's Script, Plugin and Hack Archive as of 3/1/04: Collapse... Read More

自分のMovableTypeの年齢? from Dasalog 〔多聞強識〕 on March 21, 2004 7:56 AM

David Raynes: MTCountdown 「MTCountdown」と「MTEntry」プラグインを使って,MovableType導入からの経過時間をインデックスに表示します。(この右下にあるやつです) まずプラグインの「MTCountdown」ã... Read More

I’ve learned a lot about Movable Type over the last couple of years. I’m comfortable working with the tags used by the system to create content display. My recent experience with some database problems, either caused by ecto or by... Read More

I hadn't done any real back-end work on this blog for ages now, but today I went nuts downloading and installing new Movable Type plug-ins.... Read More

18 Comments

So, is this basically doing the same thing as this use of the SQL plugin, but with less code, and without the need for mySQL? Can any of the MTEntry* tags be used, or just those used in your example?

Exactly. Any of the MTEntry tags should work. Just let me know if they don't, and I'll do what I can to fix it. :)

Where is the plugins directory?
I didn't find any .pl files anywhere

If you haven't installed any plugins before, then you probably don't have a plugins directory already. You'll need to create one in your Movable Type directory.

hi ... tried the plugin and it works ... but i got a "warning" during rebuilding...

MT::App::CMS=HASH(0x835158c) Use of uninitialized value in concatenation (.) at lib/MT/Template/Context.pm line 894.

anything wrong?

oh I will definitely be playing with this one this weekend!! thanks :)

>You'll need to create one in your Movable Type directory.

Hi, I was referred to this plugin by girlie. I'm new to this whole plugin thing. Where in my directory do I create the plugin directory? and do I need to set any permissions?
Thanks!

This is brilliant, it's exactly what I was looking for to post some permanent contnent to the front page of my blog. Thanks David.

Hey David, nice job. I have a question though- is there any way to make the id parameter dynamic? I am trying to use an ASP variable- my tag looks like this

">

But when I go to rebuild it in MT, I get an error saying that is not found (obviously it's not found, the MT rebuild is parsing without taking into account that there is a variable).

Is there any workaround to this?

Jai

Besides making it the id parameter dynamic, I was wondering if it's possible to have multiple ids in the parameter, separated by commas.

So <MTEntry id="45,46"> would return the two entries that have id 45 and 56 respectively.

That way you don't have to write two MTEntry lines.

I really want to use this plugin in combination with the processtags plugin in the other entry but for some reason this does not work. any thoughts?

YAY! YAY YAY YAY YAY YAY!!!

I've been combing every MT site i could find for a solution to the context on my comment preview and error pages being out of wack. The problem was that the entry date was showing the current date, which broke my image paths (which are based on the date of the entry). I tried wrapping the whole page in an tag but for some reason that was giving me more than one entry, even though the comment form was passing in an EntryID.

Anyway, long story short, this plugin provides the right context for my comment preview and error pages, so all my entry-related variables resolve properly and comments can be previewed in context. The syntax I used was:

yay! thank you so much!

Getting an error on Rebuilds:
Building entry 'LastEntryTitle' failed: Parse error in template 'Category Archive': with no

In my Category Archive template I have the following:


I've got a closing tag in the template, and have even tried adding more, but I still get this error on whatever the last entry is. Despite this error MT does process everything correctly, and the end result is fine. It seems to be this plug-in is the source of my trouble. Any advice?

I have downloaded entry.pl and then uploaded into public_html/mt/plugins. But I don't know how to make a post stick. The code displayed above in David's post (in black box)--where should that go?

I basically just want to render a post sticky, but only for one day. Is this possible? Thanks so much for any input.

Thanks. This is very much what I was looking for when I filed a feature request for MT and Tech Support sent me to this page.

The one thing I still want however is the ability to include a specific URL (not necessarily an MT entry id). That would be most cool.

wow.... after inoticing yr help pages so often i realize u make all the good plugins (well alot)..... ya wow.... thnx. yr sooooo great...... redtv luv U!

Writing If...Else statement in movabletype

Can someone please help me?

I am trying to determine how to identify my archive link so that I can then select which menu structure to show.

Example: url1="country/country_entertainment/" and url2="country/country_sports/"

If str(url) contains "entertainment"
then hilite (menu_ent)
elseif str(url) contains "sports"
then hilite (menu_spt)

I know there is a MTElse...but then how do I get the individual url1 and url2 without getting all the category urls?
And how do I check if the url returned have either "entertainment" or "sports"?

Ps. My name is Tun Kwan, student from Sabah Tshung Tsin Secondary School, Malaysia

Leave a comment

Recent Entries

  • Plugin Writing 101

    So, I’m planning on writing up some entries about various aspects of plugin development. While I have a couple topics already in mind, I thought...

  • The Olympics Make Me Want To Compete Again

    Every time the Olympics come around (most the summer ones) I always start to delude myself into thinking I could complete once again in the...

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

Close