[MTOS-dev] MT automatically adds title when XMLRPC supplies empty title field
Bud Gibson
fpgibson at gmail.com
Wed Jan 2 15:21:06 PST 2008
Could you just do this in templates by making the display of the title
conditional on there actually being one, for instance
<mt:IfNonEmpty tag="EntryTitle">
<h2><$MTEntryTitle$></h2>
</mt:IfNonEmpty>
from this page in the documentation:
http://www.movabletype.org/documentation/appendices/tags/ifnonempty.html
Bud
On Jan 2, 2008 5:36 PM, Timothy Appnel <tim at appnel.com> wrote:
> 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/
>
>
>
> _______________________________________________
> MTOS-dev mailing list
> MTOS-dev at sixapart.com
> http://www.sixapart.com/mailman/listinfo/mtos-dev
>
--
Bud Gibson
cell: 734-657-4800
web: http://michiganinnovators.org
More information about the MTOS-dev
mailing list