fbpx
  1. rvlak
  2. ADVANCED GUTENBERG
  3. Monday, November 05 2018
  4.  Subscribe via email
I am looking for a way to conditionally display Gutenberg blocks in the front end, based on user roles. For example, only show CTA block 1 to users with role X, and CTA block 2 to users with role Y.

I read that the upcoming Block Options Pro plugin will be able to facilitate that, but it is unclear when the Pro version will be launched. Would there be a way to do this with Advanced Gutenberg?
Responses (4)
Accepted AnswerPending Moderation
Hi,

Thanks for contacting us here about this extension.
I am looking for a way to conditionally display Gutenberg blocks in the front end, based on user roles. For example, only show CTA block 1 to users with role X, and CTA block 2 to users with role Y.

I read that the upcoming Block Options Pro plugin will be able to facilitate that, but it is unclear when the Pro version will be launched. Would there be a way to do this with Advanced Gutenberg?

Yes, you can define which editor blocks Users / User roles can use.
For more information: https://www.joomunited.com/documentation/advanced-gutenberg#toc-2-1-block-list

Hope it helps!
Cheers,
  1. more than a month ago
  2. ADVANCED GUTENBERG
  3. # 1
Accepted AnswerPending Moderation
Hi there,

Thanks for following up. Actually, I did not mean how to restrict access to using editor blocks, but how to restrict access to viewing them in the frontend (ie. by conditionally displaying a block, based on the role of the visitor). The Elementor plugin combined with Widget Options Pro can do this very well, but I was hoping that with (Advanced) Gutenberg there would also be a way to do this.
  1. more than a month ago
  2. ADVANCED GUTENBERG
  3. # 2
Accepted AnswerPending Moderation
Hi,

Currently this was a feature we would have liked to implement on our first version of the plugin :)
The current Gutenberg dev. state does not allow us to perform such filter/restriction: https://github.com/WordPress/gutenberg/issues/6349

I think this is something that may change in the upcoming month(s), then we'll be able to work on that!

Cheers,
  1. more than a month ago
  2. ADVANCED GUTENBERG
  3. # 3
Accepted AnswerPending Moderation
Hi Tristan,

Yes, I understand that developing something that needs to work with Gutenberg is similar to shooting at a fast moving target that is still morphing into a definitive shape. I hope this will change soon!

Best regards,

René
  1. more than a month ago
  2. ADVANCED GUTENBERG
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!