Skip to Content Skip to Menu

CB Content Bot in articles/items

9 years 6 months ago #277002 by goodbyname
CB Content Bot in articles/items was created by goodbyname
Okay, I'm sorry...I've read the Using Substitutions throughout... etc....watched Nick's video on subs and searched through the forum....but my newbie "learn by doing" status is going to be obvious here.

CB Content Bot is installed, published, Public, etc. As I understand it, I should be able to add either field content, with the field name, or even an entire tab, with the tab name, into my k2 content.

I've seen
{cb:[fieldname I assume?]}

I can learn from example: I have a CB Gallery tab for music uploads on my CB user's profile. They make a k2 item, and I would like their uploaded music on that tab to appear on any item they create. I assume I can use a substitution for this by placing it in the item.php or in the content of the item?

Just...what would that code/substitution look like to display the tab?

[cb:userposition position="canvas_main_middle" /] to show tabs from a particular position? It just shows up as I've just written it.

I took this from the tutorial:
[cb:usertab tab="TAB_ID" user="REPLACEMENT" /] and put in my tab ID

I know it's baby steps, but I am learning to walk.

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49441
  • Thanks: 8467
  • Karma: 1465
9 years 6 months ago #277022 by krileon
Replied by krileon on topic CB Content Bot in articles/items
I've already replied to your other topic regarding usage of CB Content Bot. Please see my reply below.

www.joomlapolis.com/forum/153-professional-member-support/232614-user-music-upload-to-k2-item#277016

Substitution usage, including tabs, is explained in the below tutorial with examples.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-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.

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

9 years 6 months ago #277029 by goodbyname
Replied by goodbyname on topic CB Content Bot in articles/items
Thank you for the reply. I see you replied to my initial post and since then I have upgraded as I thought the content bot would be the solution. Nice to see I figured out the right track, but to state again, I have already read the tutorial you have referred me to and looked through Nick's tutorial video, but something is going wrong.

My examples of the code I have tried for the substitution are above, but none of them work with either a Joomla! article or a K2 item...I tried the article to see if it was a K2 problem.

Have I coded it incorrectly?

[cb:usertab tab="30" user="REPLACEMENT" /] (my music gallery tab is ID 30. <--- shouldn't this be working? I have modified the examples directly from your tutorial.

I have tried it in the item content and also in another div I added to item.php

Thanks in advance.

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

9 years 6 months ago #277033 by goodbyname
Replied by goodbyname on topic CB Content Bot in articles/items
I hate to hassle, but I could really do with the help.

Copy and pasted examples from the tutorial do not work...I have all content plugins enabled and have referenced correct tabs, or simply inputted fieldnames....at the very least, my username one should work. It doesn't.

I have been adding these to Joomla articles, not K2 items, in order to remove the questionable K2 compatibility. Something isn't working.

Any thoughts, please?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49441
  • Thanks: 8467
  • Karma: 1465
9 years 6 months ago #277062 by krileon
Replied by krileon on topic CB Content Bot in articles/items

Have I coded it incorrectly?

No, your above usage is not correct. In my reply I showed how to use the CB Content Bot tags. The plugin description also shows it. You have to use the following format.

{cb}SUBSTITUTION{/cb}

[cb:usertab tab="30" user="REPLACEMENT" /] (my music gallery tab is ID 30. <--- shouldn't this be working? I have modified the examples directly from your tutorial.

You don't have user specified. The substitution tutorial provides a full example of tab substitution and explains the user parameter. Example as follows.

{cb}[cb:usertab tab="30" user="#displayedOrMe" /]{/cb}

I have tried it in the item content and also in another div I added to item.php

You don't add it to any PHP, but just directly in the article.


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