No idea what you're asking, sorry. Substitutions for fields work in userlists whether description, label, or layout. This includes the IF substitutions. If for example you need a description unique to a location you can use the reason condition (note this only works for fields) as follows.
[cb:if reason="list"]This will only display when on a userlist.[/cb:if]
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.
I've tried following "if" statements for preparing different looks for my list. None is working! I wanted to display an eMail in the list only if the user is logged in, but the eMail is displayed always (logged in or not)! The normal "[firstname] [lastname]" as an "own HTML" for example is working in list.
[cb:if username="demo"]This is Demo being displayed.[/cb:if]
[cb:if viewaccesslevel !includes "1"]I am NOT Public[/cb:if]
[cb:if usergroup !includes "2"]I do NOT have Registered Usergroup[/cb:if]
Field conditions are always based off the profile owners user object. If you need them based off the viewing user you use user="#me". If you want it to be based off the displayed user when possible then use user="#displayed". If you want it based off displayed when possible otherwise self then use user="#displayedOrMe". If you want to display something based off the profile owner being logged in you need to condition against the onlinestatus field (true/false/1/0 values should all work). See the below substitution tutorial below for further substitution usage information.
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.