Skip to Content Skip to Menu

Substitutions not working in modules

  • tmoran
  • tmoran
  • OFFLINE
  • Posts: 166
  • Thanks: 12
  • Karma: 1
9 years 9 months ago #256919 by tmoran
Substitutions not working in modules was created by tmoran
Hi,

I'm running Joomla 3.3.6 and have upgraded to CB 2.0.3 however my Substitutions no longer work in a module (they're working OK in articles). They worked previously in a module when running CB 1.9.1

Is there any add-on I require?

The following works in my Joomla articles but not in a module...

{cb:[cb:if user_id=""]You must log in with your Username & Password to access this content.[/cb:if]}

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 9 months ago #256932 by nant
Replied by nant on topic Substitutions not working in modules

tmoran wrote: Hi,

I'm running Joomla 3.3.6 and have upgraded to CB 2.0.3 however my Substitutions no longer work in a module (they're working OK in articles). They worked previously in a module when running CB 1.9.1

Is there any add-on I require?

The following works in my Joomla articles but not in a module...

{cb:[cb:if user_id=""]You must log in with your Username & Password to access this content.[/cb:if]}


Have you upgraded your Joomla CB Content bot as per this article:
www.joomlapolis.com/cb-20-addon-status

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
9 years 9 months ago - 9 years 9 months ago #256965 by krileon
Replied by krileon on topic Substitutions not working in modules
For substitutions in a module you need to use CB Content Module. CB Content Bot is designed for substitutions in Joomla articles and to be used with Joomla article objects. I've no idea if it'll work in other places that process content bots. This is in addition to Nicks comment as your CB Content Bot usage is out of date as it's now {cb}CONTENT{/cb}.


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: 9 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

9 years 9 months ago #257560 by Andrew Dunn
Replied by Andrew Dunn on topic Substitutions not working in modules
Hi Kyle

Just to clarify, when using the new format for substitution in Joomla Articles, how would you show some content if a user is logged in to the site and another set of content when logged out?

For example, in a Joomla article to show the text "Welcome" and then if the user is logged in display "Welcome [username]

Kind regards

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
9 years 9 months ago #257591 by krileon
Replied by krileon on topic Substitutions not working in modules

Just to clarify, when using the new format for substitution in Joomla Articles, how would you show some content if a user is logged in to the site and another set of content when logged out?

Please see the examples at the bottom of the substitution tutorial as a substitution IF usage is exampled there for that exact scenario.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb

Specifically the below should work fine.

[cb:if user="#me" user_id<="0"]Not Logged In[/cb:if]
[cb:if user="#me" user_id>"0"]Logged In[/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.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum