Help - Search - Members - Calendar
Full Version: Use MT Tags within Google API
Movable Type Community Forum > Additional Resources > Tips and Tricks
tomkarlo
I have the same problem/question... it seems to me that the GoogleAPI is really only interesting when done with search terms that are variables, not fixed value (otherwise I could just chuck the content in manually or via PHP.)

On each of the entries at karlo.org I put a "Google!" link that currently links to a search on google (using terms in the entry's excerpt field). I'd love to have that change to a list of say the top 5 results (just for the newest entries on my home page.)

If I can't insert the exerpt text into the GoogleAPI query field, then I have no way of creating this search at build time. Any ideas? If I can't figure it out this way, I'll have to write the 5 most recent entries' search terms to a file, then have PHP retrieve the entries and put them in includes.
u2zoo
Ok kids... it would seem that you cannot embed MT Tags such as <$MTEntryTitle$> or the Category title into the tag. This is beyond frustrating... can anyone think of a workaround?

This is what I would *like* to do: (anything even close would be fine)

CODE
<MTGoogleSearch query="<$MTEntryTitle$>" results="5">
<li><a href="<$MTGoogleSearchResult property="URL"$>"><$MTGoogleSearchResult property="title"$></a></li>
</MTGoogleSearch>
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.