• Resolved acreativity

    (@acreativity)


    Hi,

    I have two versions of the same page: one for registered users and one for non-registered users, and only the correct one should appear in the menu. Is it possible to exclude registered users or other users groups from viewing a page and its menu item?

    Thank you and best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    What you can do is use a single page instead and enclose the content using the shortcodes

    [groups_member?group=”Registered”]Registered users will see this content[/groups_member]

    [groups_non_member?group=”Registered”]Visitors will see this content[/groups_non_member]

    Also, the same result can be achieved using the equivalent Blocks Groups Member and Groups Non-member.

    This approach is preferable because the menu item and page version for visitors, will always be visible in the menu and accessible by everyone.

    Reference:

    Kind regards,

    George

    Plugin Author Kento

    (@proaktion)

    If you use Navigation blocks (not the traditional sidebar/widget approach) then you could also use this approach:

    • Enclose one Navigation block within a Groups Non-member block for the Registered group. Use Menu A with this Navigation block.
    • Enclose a second Navigation block within a Groups Member block for the Registered group. Use Menu B with this Navigation block.
    • Use separate menus for these two with the items as required, here we have two Menus, A and B. For your case, the page for non-registered visitors goes in Menu A, the second page for registered users goes in Menu B.

    Also noteworthy, in the upcoming Groups 2.20.0 we add support for having items hidden automatically in Navigation blocks for Page Link items that point to existing pages – this is already implemented in the https://github.com/itthinx/groups/tree/tested-2.20.0-6.4 branch if you want to try that. Note that this works for Page Link menu items, not for plain Links where you input the URL manually.

    Plugin Author Kento

    (@proaktion)

    PS Blocks documentation reference for Groups: https://docs.itthinx.com/document/groups/blocks/

    Thread Starter acreativity

    (@acreativity)

    Thank you for the answers.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘To exclude a group’ is closed to new replies.