Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kajal_sawant 10 posts 113 karma points
    Jan 09, 2019 @ 11:57
    kajal_sawant
    1

    How to Hide some document type from document type as per community.

    Hello,

    I want to hide some document type in setting -> document type. As per community wise. Is this possible to get this with some event handler or via any package or some custom code.
    e.g :There is one document type News and there 2 community i want to give this document to community1 which is in Admin and hide from community2 .

    Thank you.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jan 09, 2019 @ 12:51
    Alex Skrypnyk
    1

    Hi Kajal

    You can hide some properties, if you want to hide doctypes - you need to hack into menu tree rendering event and override what user can see.

    Thanks,

    Alex

  • kajal_sawant 10 posts 113 karma points
    Jan 09, 2019 @ 13:27
    kajal_sawant
    101

    Hello Alex,

    Thank for reply .

    But i have query as u suggest me to override the menutree rendering but menu tree is not rendering at document type. So i have tried to use TreeControllerBase.RootNodeRendering event.I get root node display name "document type" and its show haschildren property true. but i don't know how to access the children nodes.

    Can you please suggest what should i do next ?.

  • kajal_sawant 10 posts 113 karma points
    Jan 10, 2019 @ 05:27
    kajal_sawant
    1

    Hello All,

    I find the solution. I can get the list of all the document type by using TreeControllerBase.TreeNodesRendering event and we can remove particular or remove all the node also.

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft