Help - Search - Members - Calendar
Full Version: Need a way to permantly keep certain posts visible
Movable Type Community Forum > Additional Resources > Tips and Tricks
spencer
THe problem is that I want to keep 5-6 links to posts (on my homepage) permantely there, no matter how much time goes by.

Is there a way of doing this?

Thanks
almuhajabah
Probably the easiest way of doing this is to create a new category which you can call "permanent" or "sticky" or "important" or whatever you choose. Add this as the category to the posts that you want to list permanently.

Then in the place on your template that you want the links to show up, use this code. I'm using "permanent" as the name of the category:

CODE
<MTEntries category="permanent">
<a href="<$MTEntryLink$>"><$MTEntryTitle$></a><br>
</MTEntries>


If you're using MT 2.5 or higher, you can replace MTEntryLink with MTEntryPermalink.
eduardo
Quick and dirty method: post-date them to sometime in the next decade, e.g., 12/31/2020. Then they will always appear first.
kadyellebee
Just in case you still didn't get the answer you are looking for - Are you looking to just make sure that you always have posts on the index, not necessarily the same ones?  Then you just need to add to your MTEntries tag like this:
CODE
<MTEntries lastn="6">

That will always show the last 6 entries smile.gif

Kristine
cj69collins
I wish there was something like <MTEntries EntryID='100'> for this situation. That way, one does not need to foul with the dates of entries. It is not overly hard to see entry IDs.
kadyellebee
Actually cj69, David just came out with a plugin that would do what you are describing - check out MTEntry. smile.gif

Kristine
girlie
Ooh, that's a confusing name.  :p

For me anyway. Heh.
girlie
Oh my goodness, and how perfectly timed!
inez
would this work like the option greymatter has, where you can keep an entry on top?
medic119
inez: yes it would you would just create another MTEntries Container above the main one with the MTEntryID tag inside it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.