Addressbook RDF and MenuList BUG

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Addressbook RDF and MenuList BUG

Honza T_
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: [hidden email]

mail: [hidden email]
mail: [hidden email]
_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf
Reply | Threaded
Open this post in threaded view
|

Re: Addressbook RDF and MenuList BUG

Neil-4
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.
_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf
Reply | Threaded
Open this post in threaded view
|

Re: Addressbook RDF and MenuList BUG

Honza T_
Neil napsal(a):

> 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.
>

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>

--

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

ICQ: 134810196
MSN: [hidden email]

mail: [hidden email]
mail: [hidden email]
_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf