Help - Search - Members - Calendar
Full Version: Dirify "mtsearchstring" ?
Movable Type Community Forum > Additional Resources > Tips and Tricks
ishbadiddle
I'd like to create a list of external searches in my search results, to let the user find similar pages on Google, Wikipedia, etc. My problem is with del.icio.us, which needs to replace all whitespace with underscores. I've tried

CODE
<$MTSearchString dirify=1$>
but that doesn't seem to work. Has anyone else tried this? Can I run a Regex on MTSearchString?

Thanks,

Mike
ishbadiddle
Answering my own question. Use MTCgi:

CODE
<MTCgiParams include="search">
<a href="http://del.icio.us/tag/<MTCgiParamValue dirify="1">" title="links tagged with “<$MTSearchString$>”">del.icio.us's Tags on "<$MTSearchString$>"</a><br>
</MTCgiParams>


Bingo!
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.