Please Log in or Create an account to join the conversation.
Please try the below; there's no need to use GID.How do I make content only available to unregistered users (public gid="1"). I have tried:
{cb:[cb:if gid="1"]
This content will only appear for unregistered users
[/cb:if]}
It didn't work, is it possible?
Yes using REGEX. Please see the below.Also, is there a way to make content visible to multiple usergroups without having to duplicate the entire content between separate tags? ie:
{cb:[cb:if gid="2","6","7","8","9","10"]
This content will only appear for all logged in users
[/cb:if]}
I have tried numerous variations without success. Only the first gid listed works (in this instance "2")
Yes and no, you could use "gids" which contains an array of all the usergroups the user belongs to. This would then be formatted as id|*|id|*|id I believe so you could use REGEX to just match the parent.Lastly, can these settings be applied to parent usergroups? It appears that you have to specify every usergroup individually.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.