« Matrix "Product" Placement? | Main | MTSplitLoop »
May 28, 2003
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
Posted by rayners at May 28, 2003 11:54 AM
- Blogging → Movable Type → MT Plugins → Entry
Trackback Pings
TrackBack URL for this entry:
http://mt.rayners.org/mt-tb.cgi/108
Listed below are links to weblogs that reference MTEntry:
» Entry from MT Plugin Directory
Any MTEntry* tags should work in this container. [Read More]
Tracked on December 19, 2002 10:42 PM
» MTEntry Plugin from ETC. Indulging my inner geek
A new plugin for MovableType from David Raynes is the MTEntry Plugin. This plugin creates a tag for one specified [Read More]
Tracked on January 20, 2003 12:38 PM
» News Roundup from hebig.org/blog
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]
Tracked on January 25, 2003 02:50 PM
» News Roundup from hebig.org/blog
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]
Tracked on January 25, 2003 02:53 PM
» News Roundup from hebig.org/blog
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]
Tracked on January 25, 2003 02:58 PM
» linking to a particular entry from Al-Muhajabah's Movable Type Tips
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]
Tracked on March 15, 2003 04:13 AM
» Einen bestimmten Eintrag anzeigen: MTEntry from generation blogger
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 Eintrge anhand der ID anzeigen (diese ID ist brigens iden... [Read More]
Tracked on July 1, 2003 05:35 AM
» Einen bestimmten Eintrag anzeigen: MTEntry from generation blogger
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 Eintrge anhand der ID anzeigen (diese ID ist brigens iden... [Read More]
Tracked on July 1, 2003 05:35 AM
» Einen bestimmten Eintrag anzeigen: MTEntry from generation blogger
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 Eintrge anhand der ID anzeigen (diese ID ist brigens iden... [Read More]
Tracked on July 1, 2003 05:39 AM
» Bloggie Scripty Reverb from Bloggie Broad
BB's Script, Plugin and Hack Archive as of 3/1/04: Collapse... [Read More]
Tracked on March 1, 2004 06:41 PM
» 自分のMovableTypeの年齢? from Dasalog 〔多聞強識〕
David Raynes: MTCountdown 「MTCountdown」と「MTEntry」プラグインを使って,MovableType導入からの経過時間をインデックスに表示します。(この右下にあるやつです) まずプラグインの「MTCountdown」... [Read More]
Tracked on March 21, 2004 07:56 AM
» Grokking MT and Link Rot from random ruminations
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]
Tracked on April 21, 2004 11:35 AM
» plug one plug two from gallimaufry
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]
Tracked on April 19, 2005 09:34 PM
Comments
Where is the plugins directory? I didn't find any .pl files anywhere
Posted by: Stelios at January 2, 2003 01:32 PM
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.
Posted by: Adam Kalsey at January 20, 2003 12:15 AM
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?
Posted by: jim at March 3, 2003 02:04 AM
oh I will definitely be playing with this one this weekend!! thanks :)
Posted by: gnome-girl at March 11, 2003 11:28 PM
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!
Posted by: Armin at March 16, 2003 04:27 PM
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.
Posted by: Glenn at May 8, 2003 07:41 PM
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 <%=myentry %> 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
Posted by: Jai at May 13, 2003 10:23 AM
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.
Posted by: Adam Morris at May 29, 2003 01:46 AM
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?
Posted by: Tarun at June 14, 2003 10:56 AM
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!
Posted by: pascal at March 3, 2004 02:37 AM
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?
Posted by: NipponBill at March 11, 2004 11:20 PM
oops code killed in previous post. See:
http://www.movabletype.org/support/index.php?act=ST&f=9&t=37410
Posted by: NipponBill at March 11, 2004 11:23 PM
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.
Posted by: Nick at March 12, 2004 05:50 AM
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.
Posted by: Vicki Brown at November 19, 2004 12:53 AM
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!
Posted by: zro at November 25, 2004 08:30 AM
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/countryentertainment/" and url2="country/countrysports/"
If str(url) contains "entertainment" then hilite (menuent) elseif str(url) contains "sports" then hilite (menuspt)
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
Posted by: Ko Tun Kwan at June 11, 2005 09:40 PM
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?
Posted by: maddy at December 17, 2002 09:15 PM