Help - Search - Members - Calendar
Full Version: Using Keywords for Google Search
Movable Type Community Forum > Additional Resources > Tips and Tricks
jasontromm
How can I use keywords for my google search query?  I tried this
CODE
<MTGoogleSearch query="<$MTEntryKeywords$>" results="5">
<li><a target="_blank"
href="<$MTGoogleSearchResult property="URL"$>"><$MTGoogleSearchResult
property="title"$></a></li>
</MTGoogleSearch>


This didn't work.  I got an error about the Google search not having anything for the query.  What am I doing wrong?
girlie
CODE
<MTGoogleSearch query="<$MTEntryKeywords$>" results="5">


You can't use one MT tag inside another like that - unless something changed in MT2.5 that I don't know about!
bmk
They need to add another tag for this, for example, here's how it's done with the title of an entry:
CODE
<MTGoogleSearch title="1" >
<a href="<$MTGoogleSearchResult property="URL"$>"><$MTGoogleSearchResult property="title"$></a><br />
</MTGoogleSearch>


There's one for title and excerpt, but not for keywords.  yet?
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.