Гость
10 Нояб 2012 18:06

is it possible to save searches performed by a user?

for it creates a search history?

Последние изменения: 02 Март 2014


Sackgesicht VIP
Total posts: 1,636
10 Нояб 2012 19:02

By default Cobalt does not support it.

Cobalt "memorizes" the search per category within your session.

You might want to request for a feature update.

A possible interface for registered users could be a button/link beside the text search like "My searches" (per section/category) to retrieve them and another button/link beside the individual filter indicators (filter warnings) to save them .


Гость
10 Нояб 2012 19:16

If cobalt memorizes maybe i can With php and sql create à list ti show history per session (i Jave only one section and categorie)

Ok. Where i can add future update in idea?


Гость
11 Нояб 2012 02:59

thank you for help,what is the table as we speak


Sergey
Total posts: 13,748
11 Нояб 2012 07:48

Actually the way it saves data is more or les like encrypted or I would say very hard to use. I would even say there is no way to get list of current states in session. But it is possible to get state of current page.

Pity but Cobalt cannot save searches yet. It was in the plans ut it turned out to be much more complex task than we expected. We wanted not only save searched but also subscribe to searches so user get notified if new articles added that much the search. But unfortunately we cannot implement it now and even for Cobalt 8.

But if we talk only about saving searches and naming it it is quite possible to do. You just need to save all session state.

JFactory::getApplication()->getUserState('com_cobalt');

And save it some where. You can encode it to JSON. Then when user resote it just populate it back and reload page.

Работает на Cobalt