Category for a new node using Modern UI

Hi team,

I am trying to define a category for the node I am developing.
Using the decorator, I can assign the new node to a custom category in the classic interface. But this doesn’t apply to the modern UI (See below Classic vs Modern and the code).

Am I missing something ?

Thanks
Jerome

image

image

f_cat = knext.category(
    path="/",
    level_id="level1",
    name="Test Extensions",
    description="All Test Extensions",
    icon="icon.png",
)

io_cat = knext.category(
    path=f_cat,
    level_id="io",
    name="I/O",
    description="All I/O Extensions",
    icon="icon.png",
)

@knext.node(name="New extension", node_type=knext.NodeType.MANIPULATOR, icon_path="../icons/icon.png", category=io_cat)

Hi @trj,

Sorry for the late reply — and thanks for sharing the details!

Your code looks correct. Unfortunately, in the current Python Extensions development mode, node categories are not yet supported in the Modern UI. That’s why you’re only seeing the effect in the Classic UI.

The good news: if you build your extension and install it from the update site, the category will appear correctly in both the Classic and Modern UIs.

Tip: For community extensions, it’s recommended to use the "/community" category as the top-level entry point.

1 Like

Hi @bwilhelm

Thanks for the information, this is great.
Will test it soon.

Regards
Jerome

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.