2011-06-22, 03:41:20
mvlcek Wrote:yojoe Wrote:I find the tag list feature very useful. Especially when normal user can maintain it pretty easy.
But I have a question. Tags are printed as normal text, and supposing I'd want to display every tag as a link to search result, where page containing such tags, and words in content would be listed, how could I achieve it ?
I suppose I'd have to link to page with search results and use tags from the list as params.
yes, look at i18n_search/tags.php and output an <a href="/my-search-result-page?tags=the-tag" ...> instead of the <span ...>.
yojoe Wrote:edit: a sidequestion
get_i18n_tags(), and return_i18n_tags() show all tags. Is there a way to disable listing tags defined for currently visited page ?
There is no function to do this - why do you want to do this?
But you can do it like this:
...
You're the man!
Tag cloud with links to search result is generated nicely.
But results aren't working flawlessly.
Reason: tags consisting of two or more words separated with space
e.g.: /serp?tags=phrase1 phrase2
are being parsed as: /serp?tags=phrase1%20phrase2
thus it leads to show no results
Urls with encoded (or special) chars are always a pain when it goes to processing them.
Do you think that adding a function which could switch "%20" to " " before initializing search function would solve this problem ?
Other minor question I have is about search result links.
They always contain ?lang=en|de|es|etc at the end.
Is there an additional argument for (% searchresults %) disabling the trailing ?lang= for links on serp ?
Something similar to showLanguage:0 - meant to disable showing page's language in serp.
Addons: blue business theme, Online Visitors, Notepad