Re: Fwd: Favorites feature in tiki 15.X
Eduard González Massot <egm-4eoKog/xKjJWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <CAP5sODeK-s1RdAzzgc=qqyNbj6ZhhrP8eSFHK3E+qZnT6A2KcQ@mail.gmail.com> |
Thanks Rick, It works! Another workaround was to "repair" the database before rebuilding index. Something like MySQL: 'UPDATE `DB_Name`.`tiki_object_relations` SET `target_type` = REPLACE(`target_type`, "wiki+page", "wiki page") WHERE `target_type` LIKE "%wiki+page%"' REgards, <https://twitter.com/LesLleis> <https://plus.google.com//u/0/b/114463299158836936755/> <http://www.facebook.com/pages/Leslleiscom/510665362304934> Eduard González Massot T: +376 380 877 F: +376 817 278 www.leslleis.com egm-4eoKog/xKjJWk0Htik3J/[email protected] 2018-02-20 18:29 GMT+01:00 Rick Sapir <[email protected]>: > 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 <egm-4eoKog/xKjJWk0Htik3J/[email protected]> > *To:* Tiki users mailing list <[email protected]> > *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/ <http://demo.tiki.org/15x/>.* > > > I have been looking at the database, table tiki_object_relations: > > Looks like: > > > relationId relation source_type source_itemId [image: Ascendent] 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 > > > > > > > <https://twitter.com/LesLleis> > <https://plus.google.com//u/0/b/114463299158836936755/> > <http://www.facebook.com/pages/Leslleiscom/510665362304934> > 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 <egm-4eoKog/xKjJWk0Htik3J/[email protected]> >> *To:* Tiki users mailing list <[email protected]> >> *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 > > ------------------------------------------------------------------------------ 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