• Resolved arbremojo

    (@arbremojo)


    Hi,

    I have a page built with Visual Composer. This page is accessible by two user roles: one has access to a specific part of the page, and the other one another part of the page. To achieve that, I used the shortcodes [um_show_content roles=’my_role’][/um_show_content], but it turns out the closing shortcode isn’t interpreted and is just displaying, which makes the restriction not working.

    How can I fix it?

    Regards,

    Clara.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @arbremojo

    Does the Visual Composer element support shortcode? Does the UM Show content shortcode work on a page without the Visual Composer?

    Regards,

    Thread Starter arbremojo

    (@arbremojo)

    Hi,

    Sure, it does support shortcode because Visual Composer blocks are built with shortcodes.

    The UM Show content shortcode does work on a page without Visual Composer.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @arbremojo

    When you use the shortcode, do you add it in a single block or do you separate it like this?

    – Single Block –
    [um_show_content roles=’my_role’][/um_show_content]

    – Block One –
    [um_show_content roles=’my_role’]
    – Block Two –
    [/um_show_content]

    It will only work with a single block.

    Regards,

    Thread Starter arbremojo

    (@arbremojo)

    Yes I separate them because I wrap the block and I want to hide or show.

    But nevermind, I found a solution to my problem. Thank you!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @arbremojo

    Could you please share how did you resolve the issue so others can see it?

    Thank you,

    Thread Starter arbremojo

    (@arbremojo)

    I didn’t really solved i, I just used a workaround haha.
    The problem came from Visual Composer which adds automatically shortcodes around the UM one to wrap it into a block. That caused the problem. So I just used Global Sections from my theme (Salient) which separate the two parts I wanted to hide, and embedded them in the page.

    Anyway, I’m sorry but I didn’t really solved it…

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Content restriction doesn’t work with Visual Composer’ is closed to new replies.