http://developer.mozilla.org/en/docs/Places:Query_System
Brett
Looking at the code, wouldn't createFoo or newFoo be better than
getNewFoo? Not sure if we have a coding style for that.
To me, getNewFoo sounds like there'd be a getOldFoo, too :-/
Axel
A few questions:
- Is there a way to list all livemarks?
- does "bookmarksRoot" include all bookmarks including those on the
personal toolbar?
The livemark service uses annotations to identify livemark folders. You
can look up how it works in the livemark service, but this is not
guaranteed not to changed.
> - does "bookmarksRoot" include all bookmarks including those on the
> personal toolbar?
Bookmarks root is the menu. Toolbar root is the toolbar. The toolbar is
no longer nested inside the menu. The places root is the new root of
everything. You will be able to have folders off the places root if you
want that don't correspond to any UI.
Right now, bookmarksRoot refers to the root of things that appear in the
Bookmarks menu. There's a separate toolbarRoot, and it will be
possible to create new folders which are peers of the bookmark menu and
toolbar roots.
placesRoot is the top-level root of the whole system.
.joe.
I've been looking at the onlyBookmarks property. As I read it it should
only return Bookmark folders and their contents, however In my
experiments a tree that I use ends up having the two history folders as
well. Is this a mistake in the code or in my interpretation of the
behaviour?
Mossop
Sounds like a bug. Can you file it?
There is a query in the places root that shows all subscribed livemarks
- the subscriptions folder.
If you construct a query for those items who have an annotation set to
"livemark/feedURI", you'll get back a resultset of livemark folders.
Also (cool!) if you construct a query for items who have an annotation
set to "livemark/bookmarkFeedURI" you'll get a resultset of all of the
individual posts in _all_ livemark folders. (instant aggregation!) ...
although sorting by annotation doesn't work yet, so it's not quite useful.
-Ben
Any chance you could give me a hint on how to do this?
I'm not sure on how to use the annotation service
--
Henrik Gemal
Mozilla Evangelist
Mozilla Blog with news, devinfo, links, etc:
http://gemal.dk
1. Read the query documentation that started this thread.
2. Set the annotation field in the query object to the annotation name
you are looking for. Folders or URLs with that annotation will appear in
the result.
Brett