Help - Search - Members - Calendar
Full Version: Last updated on...
Movable Type Community Forum > Additional Resources > Tips and Tricks
Alex281
I currently have two blogs running, one public and one a private journal. I have a link on the public blog that points to the index page of the private blog and I want it to have a "last updated on" date/time. I tried this tag:
CODE
<$MTDate blog_id="1"$>
but that was a total guess and it didn't work, it just gave me the date of the public page. Is there anyway to do this with MT tags? I'm runing it through MySQL so I imagine it's possible to use php, but I don't know anything about that. Thanks!
kadyellebee
Yep, MTDate just shows the date of the last rebuild.  But the Last Modified plugin does what you are trying to do really nicely smile.gif

Kristine
Alex281
hmm, I was reading the documentation for that plugin and I don't see how to do this.. lemme try and ask the question again. I have two blogs, blog 1 and blog 2. I want to show blog 2's last modified date and time on blog 1's index page... can this plugin do that? I might install that plugin anyway for what it's ment for, I like it :-)
almuhajabah
I wonder if you can use the Last Modified plugin in conjunction with the OtherBlog plugin. The OtherBlog plugin provides a container in which all tags refer to the other blog.
Alex281
It Works! I installed both plugins and this is the code that finally worked:
CODE
<MTOtherBlog exclude_blog_name="Alex281.com"><MTEntries lastn="1"> Last updated at <$MTLastModified format="%I:%M %p on %B %e, %Y"$></MTEntries></MTOtherBlog>

Thank you!  biggrin.gif
kadyellebee
Oh, I'm glad to hear that this combination of plugins works together -- great idea, Almuhajabah!  
Kristine
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.