Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-06-08 12:24:31

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

a pluging to get most frequent keys automatically listed

I’m lookin for a pluging to get the most frequent keys automatically listed:
Is there anything like this?

Last edited by Bongo-man (2014-06-08 12:25:02)

Offline

#2 2014-06-27 17:29:35

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: a pluging to get most frequent keys automatically listed

If you mean keywords on the public side, cbe_keywords (and few other plugins) should work out of the box. Or do it yourself with etc_query:

<txp:etc_query data="SELECT Keywords FROM textpattern WHERE Status=4" break="," name="kwords" />

<txp:etc_query data="{?kwords||do_list.array_filter.array_count_values.@arsort.json_encode}">
{#} : {?}
</txp:etc_query>

Here, {#} and {?} are respectively a keyword and its frequency. You can use them for constructing and styling links.

Offline

Board footer

Powered by FluxBB