Re: Fwd: Favorites feature in tiki 15.X
"Rick Sapir" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <7CC6779B858A42CA9C3EC6FFE04BD192@RickPC> |
Yup, looks like a bug. As a work-around, you can use the HTML plugin instead. Something like this should work:
{HTML()}<a class="icon favorite-toggle" href="tiki-favorite-toggle?type=wiki+page&object={HTML}{{page}}{HTML()}" data-key="favorite_{HTML}{{user}}{HTML()}"> Favorite</a> {HTML}
Rick Sapir
http://ricksapir.com
Twitter: @ricksapir
Creating Content -- Managing Information
----- Original Message -----
From: Eduard González Massot
To: Tiki users mailing list
Sent: Tuesday, February 20, 2018 5:26 AM
Subject: Re: [Tikiwiki-users] Fwd: Favorites feature in tiki 15.X
Hi Rick,
Thanks for your comments,
Listing favorites works fine. The problem is users cannot add any new favorites, or remove existing favorites.
The favourite button seems to work fine (the star highlights). Same happens at demo.tiki.org/15x/.
I have been looking at the database, table tiki_object_relations:
Looks like:
relationId relation source_type source_itemId 1 target_type target_itemId
434 tiki.user.favorite user admin wiki page L2008035
436 tiki.user.favorite user admin wiki+page L2008035
437 tiki.user.favorite user admin wiki L2010095
444 tiki.user.favorite user admin wiki+page L19990630A
468 tiki.user.favorite user admin wiki L19950630H
485 tiki.user.favorite user admin wiki page L2008017
486 tiki.user.favorite user admin wiki page L2007020
Notice target_type field is different...
first line favorite created with the button that use to appear on page top when you activated favorites feature.
Second line created with plugin {favorite objectType="wiki page" objectId="L2008035"}
Third line created with plugin {favorite objectType="wiki" objectId="L2010095"} -> this is suggested on doc.tiki.org/PluginFavorite
Eduard González Massot
T: +376 380 877
F: +376 817 278
www.leslleis.com
egm-4eoKog/xKjJWk0Htik3J/[email protected]
2018-02-20 0:00 GMT+01:00 Rick Sapir <[email protected]>:
Try:
{filter favorite="{{user}}"}
HTH,
-R
Rick Sapir
http://ricksapir.com
Twitter: @ricksapir
Creating Content -- Managing Information
----- Original Message -----
From: Eduard González Massot
To: Tiki users mailing list
Sent: Monday, February 19, 2018 11:13 AM
Subject: [Tikiwiki-users] Fwd: Favorites feature in tiki 15.X
Hi tiki community,
I have recently upgraded mi tiki site from 9.X to tiki 15.5.
Most things running smoothly, but favorites feature do not seem to work very well.
I can see the favorite button on my pages (included via favorite plugin), and the start gets highlighted when button is clicked.
But, even after rebuilding indexes, list plugin is not showing any new favorites. Neither is deleting unclicked favorites...
{LIST()}
{filter favorite={{user}}}
{filter type="wiki page"}
{OUTPUT()}{display name=title}{OUTPUT}
{LIST}
Also, after rebiulding search indexes the page I just added to favorites is no longer a favorite (does not have the start highlighted in the favorite button anymore).
Is this feature still suported? or was it replaced by tiki bookmarks?
Should favorites be reindexed separately also somehow?
Thanks!
--------------------------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--------------------------------------------------------------------------
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------------------------------------------------------
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users