How could I add a text showing something like "To access the full node, please login or register." or "The info below is only available to registered users." when I insert the [restrict]?

Comments

pukku’s picture

Assigned: Unassigned » pukku

Right now, you can't. I will look to see how this might be done.

Willdex’s picture

Thanks a lot, that'd be a great feature.

pukku’s picture

Status: Active » Closed (fixed)

Hi! I was wrong — you can already do this. The key is to know that an anonymous use has a role of anonymous user, which authenticated users should not have. So, here's a possibility:

[restrict:roles=anonymous user]The following text is only available to known users[/restrict]
[restrict:roles=authenticated user]The secret code word is "marshmallow".  Use this wisely![/restrict]

HTH,
Ricky

Willdex’s picture

So, The following text is only available to known users will only be viewed by guests and The secret code word is "marshmallow"; Use this wisely! will only be available to members?

pukku’s picture

That's what I saw in my tests.

Willdex’s picture

Awesome, I'll definitely try it out.

Willdex’s picture

Update: everything works, thanks a million.