Skip to Content Skip to Menu

mysql field cb2

  • Giankomat
  • Giankomat
  • OFFLINE
  • Posts: 56
  • Thanks: 0
  • Karma: -1
  • Add-ons
9 years 10 months ago - 9 years 9 months ago #255929 by Giankomat
mysql field cb2 was created by Giankomat
Hi, where can I find a mysql field CB2 compatible?

thanks and Happy 2015!
Last edit: 9 years 9 months ago by Giankomat.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 10 months ago #255932 by krileon
Replied by krileon on topic mysql field cb2
CB Query Field in the Professional downloads section.


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.
The following user(s) said Thank You: Giankomat

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

  • Giankomat
  • Giankomat
  • OFFLINE
  • Posts: 56
  • Thanks: 0
  • Karma: -1
  • Add-ons
9 years 10 months ago #255951 by Giankomat
Replied by Giankomat on topic mysql field cb2
thanks!
my table TEAM have columns ID,NAME,LOGO
the field obiouvsly have as values the team names.
But in profile page I want to show the logo (LOGO is a image path)

How can I do this substitution?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 10 months ago #256135 by krileon
Replied by krileon on topic mysql field cb2
You'd need to make sure your select captures all of that. Then configure the fields output to format it however you want. Example as follows.


Query:
Code:
SELECT * FROM `#__team` WHERE `name` = '[cb_team]'
Output: Single Row
Columns: Multiple Columns
Display: Custom
Custom:
Code:
<img src="[column_logo]" alt="[column_name]" />

The above is just an example to show how this is done. I've no idea your table structure or your field names so you will need to adjust as necessary. Alternatively you could use the Layouts feature to format the query result, but that could result in broken images being displayed if there is no query result.


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.

  • Giankomat
  • Giankomat
  • OFFLINE
  • Posts: 56
  • Thanks: 0
  • Karma: -1
  • Add-ons
9 years 10 months ago - 9 years 10 months ago #256182 by Giankomat
Replied by Giankomat on topic mysql field cb2
thanks!
But you're talking about a query field, I need a query dropdown (single select) field, otherwise how can the users choose their team? (actually the admins will set the team, but it's the same..)
there isn't any of the settings you're talking about in dropdown single select field
Last edit: 9 years 10 months ago by Giankomat.

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

  • Giankomat
  • Giankomat
  • OFFLINE
  • Posts: 56
  • Thanks: 0
  • Karma: -1
  • Add-ons
9 years 10 months ago - 9 years 10 months ago #256184 by Giankomat
Replied by Giankomat on topic mysql field cb2
Wait maybe I got it, you're talking about use 2 fields: query (shown in profile page) and query dropdown (shown in edit page)?
Last edit: 9 years 10 months ago by Giankomat.

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

Moderators: beatnantkrileon
Powered by Kunena Forum