[ejabberd] Create PubSub Collection

Guillaume Ludmann guillaume.ludmann at ip-media.fr
Thu Feb 11 15:00:03 MSK 2010


Hi,

I'm using ejabberd v2.1.2 and I would create a pubsub tree like this :
(root) --> toto --> titi --> info (leaf)
                         |          \-> ticket (leaf)
                         \-> tutu --> info (leaf)
                                       \-> ticket (leaf)

My ejabberd pubsub config is :
  {mod_pubsub,   [ % requires mod_caps
           {access_createnode, pubsub_createnode},
           {ignore_pep_from_offline, true},
           {last_item_cache, false},
           {plugins, ["flat", "hometree", "pep"]}
          ]},

How can I create a collection node?

1 - When I send a xml request like :
<iq type="set" to="pubsub.localhost" id="create1">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="toto"/>
<configure/>
</pubsub>
</iq>
Ejabberd create a leaf named toto.

2 - When I send a xml request like :
<iq type="set" to="pubsub.localhost" id="create1">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="toto/titi"/>
<configure/>
</pubsub>
</iq>
Ejabberd create a leaf named toto/titi.

3 - When I send a xml request like :
<iq type="set" to="pubsub.localhost" id="create1">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="toto"/>
<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>
</x>
</configure>
</pubsub>
</iq>
Ejabberd create a leaf named toto.

Could you please help me?

Br,
Guillaume Ludmann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100211/e349bd73/attachment.html>


More information about the ejabberd mailing list