Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

SEO CB plug in

1 month 3 weeks ago #339499 by karloshull
SEO CB plug in was created by karloshull
Hi 

On SEO CB plug in, does it work on CB profiles? Eg here is my profile  www.ablehere.com/profile/65-karl.html

on the <meta name="description" content="Able Here website is over 15 years international community for disabled people. We have penpals, forum to online chatroom and disabilities videos. ">

But I would like the <meta name="description" to change on every profile to the user contents.

So my <meta name="description" would be 

England, Yorkhire,  male, Cerebral Palsy, I'm a bright, happy and easy-going person with a good sense of humor. I like to joke and laugh

Can this be done?

Cheers
Karl
 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
1 month 3 weeks ago #339503 by krileon
Replied by krileon on topic SEO CB plug in
CB SEO has no substitution support so no that can't be done using it. You can however do that using CB Auto Action and its Code action as it has support for adding custom substitution supported metadata on any trigger and there's triggers for profile display where you would do this.


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.

1 month 2 weeks ago #339548 by karloshull
Replied by karloshull on topic SEO CB plug in
HI 

have you got any instructions how to do this? 

Karl

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
1 month 2 weeks ago - 1 month 2 weeks ago #339549 by krileon
Replied by krileon on topic SEO CB plug in
The below should work for outputting whatever metadata you like on profiles.

Global
Triggers: onBeforeUserProfileDisplay
Type: Code
User: Automatic
Access: Everybody
Action
Method: Metadata
Row 1
Name: description
Content: [cb_description]

The above for example would set the metadata description to the field with a name of cb_description. You may need to use the onAfterUserProfileDisplay trigger instead though if menu metadata is being applied to be able to override the menu metadata.


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: 1 month 2 weeks ago by krileon.

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

1 month 2 weeks ago #339550 by karloshull
Replied by karloshull on topic SEO CB plug in
Hi
I have tried both onBeforeUserProfileDisplay and onAfterUserProfileDisplay
This is what I am getting
<meta name="description" content="cb_mydisabilityis">

But I want it to generate the contents from cb_mydisabilityis

How can I do this?

Cheers
Karl

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
1 month 2 weeks ago #339551 by krileon
Replied by krileon on topic SEO CB plug in
You need to use an actual substitution. So the brackets in my example are required. Instead of just "cb_mydisabilityis" you'd have "[cb_mydisabilityis]". See the below tutorial for further substitution usage information.

www.joomlapolis.com/documentation/127-community-builder/279-tutorials/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.

Moderators: beatnantkrileon
Powered by Kunena Forum