Hi Hamster,
On Aug 15, 2012, at 7:27 AM, Hamster wrote:
4 years later...
I searched the XWiki Extensions, but did not find any "Favorites" Extension
of any kind.
Did anything got developed?
I don't think so.
However:
* The Watchlist application can almost be used as a Favorite application. Personally
I'd also be in favor of improving the watchlist app so that you could set the
notification period on a per-item basis (with a default period of course) and add a
"no notification" option. We would probably still need a Favorite app but at
least it would allow more use cases including a poor-man's favorite app
* It's relatively easy to create an app for Favorites. The only tricky part is to add
a "Add as Favorite" menu entry but that'll become very simple soon with the
UI Extension feature that we're currently adding in XWiki 4.2. Actually with this UI
Extension you would even be able to add a new Tab in your user profile for listing all
your favorites for example.
If you're interested here's how I would code it:
* Create a FavoriteClass XClass
* Register a new menu entry (in an existing vm file ATM) to add a new favorite
* When the user clicks the menu entry, create a XObject of type FavoriteClass and add it
to the current user document
* Modify the User Profile Sheet to add a new Favorite tab and create a page to list all
your favorites; it would use a Livetable to display all your favorites by getting all
FavoriteClass XObjects for the current user
* Add a new Menu entry in the Profile menu in the top right corner to directly go to your
favorites page (again done currently by modifying a vm file)
Hope it helps,
-Vincent