[ejabberd] Pubsub Collection Nodes using nodetree:dag

Michael Guerrero 4mguerrero at gmail.com
Sun Jul 23 02:10:27 MSK 2017


llo everyone I live in the United States and I can only keep the server jabber for two days after it falls ,node down.
Sent from my iPhone

> On Jul 1, 2017, at 2:55 AM, Robert Latko <robert at lmi-global.com> wrote:
> 
> Hi all,
> 
> I've been playing around with this on 17.04 but can't get it to work
> 
> ejabberd.yml (I tried nodetree: "dag" but this did not work...)
> 
>  mod_pubsub:
>    access_createnode: pubsub_createnode
>    ignore_pep_from_offline: true
>    last_item_cache: false
>    plugins:
>      - "dag"
>      - "flat"
>      - "pep" # pep requires mod_caps
>      - "hometree"
>    nodetree:
>      - "dag"
> 
> then (from a post)  I created  [see below] 'plays' (collection) -> 'shakespeare' (collection) -> 'macbeth' (leaf)
> 
> But still is not working the way I would expect. A stanza for node configuration results with collection for 'plays'  and 'shakespeare' but checking items for 'plays' or 'shakespeare' does not yield the collection items
> 
> Anyone have experience with Pubsub Collection Nodes, configuration, working stanzas (XEP-0248 stanzas? others?)?
> 
> Thanks in advance,
> 
> Robert
> 
> 
> <iq type='set'
>    to='pubsub.localhost'
>    id='newnode1'>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>  <create node='plays'/>
>  <configure>
>   <x xmlns='jabber:x:data' type='submit'>
>    <field var='FORM_TYPE' type='hidden'>
> <value>http://jabber.org/protocol/pubsub#node_config</value>
>    </field>
>    <field var='pubsub#node_type'><value>collection</value></field>
>    <field var='pubsub#collection'><value/></field>
>   </x>
>  </configure>
>  </pubsub>
> </iq>
> 
> <iq type='set'
>    to='pubsub.localhost'
>    id='newnode2'>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>  <create node='shakespeare'/>
>  <configure>
>   <x xmlns='jabber:x:data' type='submit'>
>    <field var='FORM_TYPE' type='hidden'>
> <value>http://jabber.org/protocol/pubsub#node_config</value>
>    </field>
>    <field var='pubsub#node_type'><value>collection</value></field>
>    <field var='pubsub#collection'><value>plays</value></field>
>   </x>
>  </configure>
>  </pubsub>
> </iq>
> 
> <iq type='set'
>    to='pubsub.localhost'
>    id='newnode3'>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>  <create node='macbeth'/>
>  <configure>
>   <x xmlns='jabber:x:data' type='submit'>
>    <field var='pubsub#collection'><value>shakespeare</value></field>
>   </x>
>  </configure>
>  </pubsub>
> </iq>
> 
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd


More information about the ejabberd mailing list