Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Addressbook RDF and MenuList BUG

6 views
Skip to first unread message

Honza T_

unread,
Oct 7, 2006, 6:58:41 PM10/7/06
to
I'm trying to show addressbook directories and its mail-lists but this
code doesnt work :

<menulist id="abPopup">
<menupopup id="abPopup-menupopup"
ref="moz-abdirectory://"
datasources="rdf:addressdirectory"
sortActive="true"
sortDirection="ascending"

sortResource="http://home.netscape.com/NC-rdf#DirTreeNameSort">
<template>
<rule nc:IsWriteable="false"/>
<rule nc:IsMailList="false">
<menuitem uri="..."
label="rdf:http://home.netscape.com/NC-rdf#DirName"
value="rdf:http://home.netscape.com/NC-rdf#DirUri"/>
</rule>
<rule nc:IsMailList="true">
<menuitem uri="..."
label="rdf:http://home.netscape.com/NC-rdf#DirName"
value="rdf:http://home.netscape.com/NC-rdf#DirUri"/>
</rule>
</template>
</menupopup>
</menulist>

This shows http://nightmare.sh.cvut.cz/~neo.matrix/rdfbug.jpg

If i try to remove rules like this
<menulist id="abPopup">
<menupopup id="abPopup-menupopup"
ref="moz-abdirectory://"
datasources="rdf:addressdirectory"
sortActive="true"
sortDirection="ascending"

sortResource="http://home.netscape.com/NC-rdf#DirTreeNameSort">
<template>
<rule nc:IsWriteable="false"/>
<menuitem uri="..."
label="rdf:http://home.netscape.com/NC-rdf#DirName"
value="rdf:http://home.netscape.com/NC-rdf#DirUri"/>
</template>
</menupopup>
</menulist>

It shows emtry list...

What do i wrong ?

Honza T_

--

|-| () |\| 7_ /-\ T.

ICQ: 134810196
MSN: hon...@hotmail.com

mail: J.To...@sh.cvut.cz
mail: Honza....@quick.cz

Neil

unread,
Oct 9, 2006, 12:48:12 PM10/9/06
to
Honza T_ wrote:

> I'm trying to show addressbook directories and its mail-lists but this
> code doesnt work :

Mailing lists are children of directories. As such, you cannot use a
template to display them in the same list. The best you can do is a
cascading menu along the lines of the move/copy menus, but then of
course you lose the ability to easily select from the list.

I think your second example was wrong because the menuitem wasn't in a rule.

--
Warning: May contain traces of nuts.

Honza T_

unread,
Oct 11, 2006, 6:36:45 AM10/11/06
to
Neil napsal(a):

thanks.. this works properly:

<menulist id="abPopup22">
<menupopup id="abPopup-menupopup"
ref="moz-abmdbdirectory://abook.mab"


datasources="rdf:addressdirectory"
sortActive="true"
sortDirection="ascending"

sortResource="http://home.netscape.com/NC-rdf#DirTreeNameSort">
<template>
<rule nc:IsWriteable="false"/>

<rule nc:IsMailList="true">
<menuitem uri="..."
label="rdf:http://home.netscape.com/NC-rdf#DirName"
value="rdf:http://home.netscape.com/NC-rdf#DirUri"/>
</rule>
</template>
</menupopup>
</menulist>

--

0 new messages