mini tips
search results in a new window
November 09, 2003
How to open search results in a new window:
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>" target="_blank">
include extended entry in notifications
November 09, 2003
Find this code in lib/MT/App/CMS.pm (currently at line 2585 in v2.64):
$body .= Text::Wrap::wrap('', '', $entry->text) . "\n";
and change it to:
$body .= Text::Wrap::wrap('', '', $entry->text . "\n\n" . $entry->text_more) . "\n";
finding the path with PHP
November 09, 2003
Upload as a .php file to your directory and run with your browser:
<?
print $PATH_TRANSLATED;
?>
entry title as tooltip in calendar
November 09, 2003
Have the title of the most recent entry display when you hover over the link in the calendar.
<MTCalendarIfEntries><MTEntries lastn="1"><a href="<$MTEntryPermalink$>" title="<MTEntryTitle encode_html="1">"><$MTCalendarDay$></a></MTEntries>
</MTCalendarIfEntries>
</MTCalendarIfEntries>
mailto link using entry title as subject
November 09, 2003
Code snippet to create an author mailto link using the entry title as the subject:
<a href="mailto:<$MTEntryAuthorEmail spam_protect="1"$>?subject=<MTEntryTitle>"><MTEntryAuthor></a>