we need an auto action that will redirect guest users to a specific page if the article they try to access is not public.
So far we have...
Global
Triggers: onContentBeforeDisplay
Type: Redirect
User: Automatic
Access: All Non-Registered Users
Conditions
Condition 1: Here we need to set that the redirection is only for articles. Not all content.
Condition 2: Here we need to set that the redirection will happen only to articles that are not public
For articles the context would be "com_content.article". This would mean your first condition needs to be the following.
Field: Custom > Value
Custom Value: [var1]
Operator: Equal To
Value: com_content.article
The problem with the access check is I believe Joomla's ACL will prevent access and result in a 404 before that event ever fires. So your article would have to be set to Public then you add your access check basically by using the auto action to redirect away and the easiest way to do that is just set the auto actions Access to "All Non-Registered Users" as you've already done. I suppose you'd need a way to flag specific articles for this redirect behavior though. Are they in a specific category? maybe have a specific Joomla tag?
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.