Help - Search - Members - Calendar
Full Version: Show Entry with Specific Title
Movable Type Community Forum > Additional Resources > Tips and Tricks
fluidharmonics
How can I setup MovableType to show only entries with specific titles? Say I wanted to show out of my entire blog archive only entries that have the title "I love MovableType." What is the best way to go about doing this?
kadyellebee
You could use the Compare plugin along with an MTEntries or MTArchives container to specify this...

Kristine
fluidharmonics
Hey thanks for referring me to the MTCompare, but I am having quite a time figuring out the best way to implement it. What would be the best code framework to have MTCompare search an entire author's journal history for the correct topic name? The answer to this could quite possibly solve all of my problems for the site I am working on. Thanks again!
kadyellebee
Maybe try something like this?

CODE
<MTEntries author="Author Name">
<MTIfEqual a="[MTEntryTitle]" b="I Love MT!">
<a href="<$MTEntryPermalink$>"><$MTEntryDate$></a><br />
</MTIfEqual>
</MTEntries>


I didn't test it out, but I think that should work for what you are trying to do. smile.gif

Kristine
fluidharmonics
Oh man this is so close to working! Here's my FINAL DILEMMA with this whole ordeal. I need the system to be able to pick out the "a" and "b" variables in different categories ^_^x

Let me explain what I'm trying to do. I have a blog with two categories, "Topic" and "Response." I write a topic and set it under the "Topic" category. Then authors respond to the topic and put their responses under "Response." Now the initial page shows the Current topic, and then displays the responses from the authors along with an excerpt. What I'm trying to do is have MT be able to match up each author's response with the correct topic by matching Entry Titles, which is turning into more work than I had originally planned ^_^x

Your solution would work perfectly if I could define the "b" variable with entries under the "Topic" category. Doing it this way will make creating archive pages incredibly easy as well. Is there any way to get this to work?

CODE
<MTEntries category="response" author="Author Name">
<MTIfEqual a="[MTEntryTitle]" b="(what to do here?!)">

<MTEntryBody trim_to="125">

</MTIfEqual>
</MTEntries>


Thank you so much for helping with this!

EDIT: Oh yeah and if this isn't possible be sure to let me know so I can figure out a better solution ^_^x
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.