Still having problems. It works fine if im logged in for all usergroups but does not seem to work for users who are guests / logged out. No traces of the query field is displayed in the article.
This is whats in the article:
<center><div style="width: 890px;">{cb:[cb:userfield field="cb_testquery" /]}</div></center><br><br>
In guest mode everything displayed but the CB snippet. Ends up looking like this.
Can't seem to get the query field to display in public / guest mode either using content bot inside the article or using the CB content Module. What am I doing wrong?
Substitutions are based off the person viewing the article. If you're not logged in then there's nothing to substitution. You need to specify the user="" attribute on the substitution to force it to render. Example as follows.
[cb:userfield field="cb_testquery" user="42" /]
If the query is generic and not user specific then it doesn't particularly matter which user id you use.
The tab the field is on also needs to be Public and Published.
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.
Last edit: 12 years 7 months ago by krileon.
The following user(s) said Thank You: pepperstreet
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.