Hi Will,
the nodeData "name" is used to identify the item when displayed in the
tree. For that reason we always need it to be able to display entry in
the tree. When nodeData "name" is missing, it is assumed that such entry
have been created by importer (or by something else programatically) and
value defaulted to the name of the node type.
Cheers,
Jan
On Thu, 2008-06-26 at 10:48 +0200, Will Scheidegger wrote:
> After more testing:
>
> It really seems to be the case, that data module dialogs _must_ have a
> control named "name" and there _must_ also be a nodedata called "name"
> to fill in that control. If - when saving the dialog - no element
> named "name" is around (or the element does not carry a value), the
> node named gets changed to the name of the node type!
>
> But why?
>
> -will
>
> On 26.06.2008, at 10:23, Will Scheidegger wrote:
>
> > More precise info:
> >
> > - The "name" field is empty in the newly created node
> > - When I use a
> > info.magnolia.module.admininterface.dialogs.NodeNameControl field
> > however, the correct name is being displayed.
> >
> > => So I'm pretty sure I should have additionally set the name
> > somewhere... but where?
> >
> > -will
> >
> > On 26.06.2008, at 10:19, Will Scheidegger wrote:
> >
> >> I'm creating data nodes programmatically like so:
> >>
> >> HierarchyManager dataHm = MgnlContext.getHierarchyManager("data");
> >> Content sbkvMemberNode = ContentUtil.createPath(dataHm, "/sbkv/
> >> memberData/" + username, new ItemType("sbkvMember"), true);
> >>
> >> This all works fine and the new node appears where it should. When
> >> I edit the new node using the data module GUI and dialog it shows
> >> my username as node name, but after saving, the node name (and
> >> therefore the path) is changed to "sbkvMember" which is the node
> >> type.
> >>
> >> Can someone tell me what I'm missing? Thanks a bunch!
> >>
> >> -will
> >>
> >>
> >> ----------------------------------------------------------------
> >> for list details see
> >> http://documentation.magnolia.info/
> >> ----------------------------------------------------------------
> >
> >
> > ----------------------------------------------------------------
> > for list details see
> > http://documentation.magnolia.info/
> > ----------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/
> ----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------