Hi,
I opened a topic recently describing how i was looking to replicate google’s “did you mean” function for my search results page. I’ve done this successfully by creating a plugin but am having one final issue with it..
I need to pass in the search term but it always seems to be passed through as blank. So far i’ve tried:
{exp:did_you_mean:search query="{exp:search:keywords}"}
and:
<?php
$query = "{exp:search:keywords}";
?>
{exp:did_you_mean:search query="<?= $query ?>"}
php is allowed for this template and i’ve tried both of these options with parsing stage set to both input and output. If i pass a normal string in my plugin works fine, i just can’t seem to get this to work with a variable?
Thanks,
James
Moved to Plugins by Moderator
