Thanks, just checking it out. It works great.
I filled out the survey. I answered no. It's not something I need, not for my site, but might be a cool feature and might be of use to some people.
I also tested with this rewrite rule and it appears to work.
RewriteRule ^tag/(.*)\/([0-9]*)$ index.php?&mact=Search,m99,dosearch,0&m99returnid=$2&m99searchinput=$1
Maybe a note in the help file about if you specify a returnid when calling {tagcloud} to use that rewrite rule. If you use that rewrite rule and don't specify a returnid, then it doesn't work.
Same if you specify a returnid and use this rewrite rule:
RewriteRule ^tag/(.*)$ index.php?&mact=Search,m99,dosearch,0&m99returnid=&m99searchinput=$1
Two things to note, both relating to not using the
base meta tag If you have CMSms to create a base meta tag, just stop here and ignore the rest as it may just confuse and create more work that you don't need to do.
First the more important one.
I had to add a condition to the rewrite rule to make Search work if searching from a /tag URL
Example:
Code: Select all
#Tags
RewriteCond %{REQUEST_URI} !.index\.php
RewriteRule ^tag/(.*)$ index.php?&mact=Search,m99,dosearch,0&m99returnid=&m99searchinput=$1
Now the other one:
I don't "showbase" with my meta data {metadata showbase='false'}
So I had to revise the function from:
Code: Select all
$tag_array[$walk_counter] = '<a href="tag/'.$row["word"];
to
Code: Select all
$tag_array[$walk_counter] = '<a href="/tag/'.$row["word"];
Otherwise I ended up with /tag/tag/tag etc if hitting a tag from a tag and then the search results wouldn't work. You'd just get "No results for, tag/tag/tag/Home" or what ever your tag/search term had been.
You would of course need to change that if you have CMSms not installed at the root of your site, say you're testing it in a sub-directory.
I don't know if there is a better way to do any of the above, but it appears to work.
Hope this helps someone else, maybe add a note to the tagcloud help file.
Thanks for adding this functionality to the main release of tagcould.