Ok so I can't count, that's three reasons.
I created a Favorites class in XWiki with three properties, Name(string),
Link(string) and Description(textarea).
I create a sheet and template and attached the Favorites Object to the
template.
I then created a page with
#set ($hql = ", BaseObject as obj where obj.name=doc.fullName
and obj.className='XWiki.FavoritesClass' and
obj.name<>'XWiki.FavoritesClassTemplate'")
#set ($favs= $xwiki.searchDocuments($hql))
#if ($favs.size() > 0)
#foreach ($fav in $favs)
* [${fav.Name}>{$fav.Link}]
#end
#else
#info("There are no Favorites in this wiki!")
#end
and since I had not yet created the first Favorite it showed No Favorites in
this wiki. Cool
Then I went back to the XWiki Favorites Class and created a new document and
populated the Name Property, Link Property and Description properties and
went back to the page with the search above...
it shows the literal fav.Name in the name of the link and Link as the URI
for the target.
if $fav the FavoritesClass object? I am guessing not.
Mike Oliver wrote:
>
> Well two reasons, one is that for the watchlist, which will show you a
> list of all the pages and spaces you are watching, is a sort of favorites,
> but what if you want to navigate to a place over and over again and it is
> buried down in a space someplace? Then what if you don't want to watch it
> and be notified for some reason, and then lastly what if you want to save
> a description so you can look at your favorites and pick "Oh that
> WebHome".
>
> Ollie
>
> Guillaume Lerouge wrote:
>>
>> Hi Mike,
>>
>>
>>> Can I filter on the user that created the record of the favorites class?
>>>
>>
>> Sure... But why don't you have your users use the Watchlist feature that
>> basically already is XWiki's favorites system for individual users ?
>>
>> Cf http://code.xwiki.org/xwiki/bin/view/Applications/WatchlistApplication
>> ,
>> it's bundled with all recent versions of XWiki Enterprise AFAIR ...
>>
>> You might still want to add that description field though...
>>
>> Guillaume
>>
>>
>>
>>>
>>> Ollie
>>>
>>> Wright, Philip wrote:
>>> >
>>> > Idea is to allow the user to create the description? If so sounds
>>> like a
>>> > GREAT idea.
>>> >
>>> >
>>> >
>>> >
>>> > Philip Wright
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Brainstorming-XWiki-Favorites-tp18222048p18223339.html
>>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> users mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
>>
>> --
>> http://wikibc.blogspot.com/
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Brainstorming-XWiki-Favorites-tp18222048p18225432.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users