[ejabberd] Pubsub Collection Nodes using nodetree:dag

Robert Latko robert at lmi-global.com
Sat Jul 1 09:56:02 MSK 2017


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>



More information about the ejabberd mailing list