[MTOS-dev] MT automatically adds title when XMLRPC supplies empty title field
Timothy Appnel
tim at appnel.com
Wed Jan 2 14:36:40 PST 2008
I suspect this is something historical that is no longer relevant.
Perhaps some editors didn't have the option of specifying a title like
lets say Userland Radio. (Just a guess, but the XML-RPC implementation
in MT does date back that far and if any weblog editor didn't support
titles it would be that one.) That said the mt:entrytitle tag in a
template will generate a title the same way. This is consistent with
how excerpts work in MT.
I'm not making a case for anything here. Just laying some thoughts out.
The line in question for MarsEdit can be found in XML::XMLRPCServer
around line 333 (based on Boomer Beta 2):
$entry->title($item->{title} || first_n_text($item->{description},
const('LENGTH_ENTRY_TITLE_FROM_TEXT')));
LENGTH_ENTRY_TITLE_FROM_TEXT is a constant defined in the language
module which means messing with the internals. Perhaps a configuration
directive is the right thing because I suspect just dropping it will
cause others to complain.
Not sure that will really help though because off the default behavior
of mt:entrytitle. Add on an attribute to optionally cancel that
behaviour also?
<tim/>
--
Timothy Appnel
Appnel Solutions
http://appnel.com/
More information about the MTOS-dev
mailing list