[MTOS-dev] Implementing new MT::App::Search
Mark Carey
mark at mt-hacks.com
Sat Mar 1 06:13:11 PST 2008
On Fri, Feb 29, 2008 at 2:47 PM, Jay Allen <jay at endevver.com> wrote:
> <input type="hidden" name="search-key"
> value="<$MTSearchKey include_blogs="all"$>" />
Thanks for the detailed description on this, Jay.
One question: how does the search-key concept differ from something like:
<mt:SearchResults include_blogs="all" exclude_blogs="4,16,85">
..which in theory would override any include/exclude parameters that
may be submitted in the URL or POST.
Of course, this method also puts security in the hands of the designers.
One difference that I can see is that with search keys, you could use
multiple keys against the same search results template, where adding
the attributes directly to results container enforced a single "key"
only. That said, it seems like a pretty rare thing to want to to
search certain blogs in one case, and a different set of blogs in
another instance. Rare enough, at least that, multiple search results
templates or some conditionals would probably handle it.
Regards,
Mark
More information about the MTOS-dev
mailing list