Skip to Content Skip to Menu

syntax ; Render images into content using plugin ?

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
10 years 1 week ago #251898 by crony
Using the plugin Content - Community Builder, I may use into content this syntax :

{cb:[cb_imagetype]}

But it's the link to an image that shows up, :

mysite.com/images/profils/actif.png

and I would like to see the image...

Can you help ?

BTW :
J! 3.3.6
CB 2.0.2

J! 4.x - CB 2.7.3

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 1 week ago #251937 by krileon
[FIELD_NAME] usage is always raw value. For formatted values you need to use [cb:userfield field="FIELD_NAME" /]. Please read our below substitution tutorial carefully.

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

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

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
10 years 1 week ago #251950 by crony
Thanks, I tried, but it's worse...Nothing is rendered at all now !

See here :
app2.geysse.com/

J! 4.x - CB 2.7.3

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 1 week ago #251967 by krileon
If nothing renders at all then the field you're trying to substitute is not available to the user that's trying to view it. Formatted substitutions need to be set to display on profile. They also need to be on a tab accessible to the user trying to view the substitution. Raw substitutions ignore access checks, which is why it shows regardless.

Please also keep in mind for CB Content Bot your substitutions always need to be contained in {cb:} or it's just going to render as plain text or HTML (e.g. {cb:[cb:userfield field="FIELD_NAME" /]}).


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.

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
10 years 1 week ago - 10 years 1 week ago #252020 by crony
Ok, thanks for these infos !
Works better, but act weird sometimes...
The rendering can be with:
{cb:[cb:userfield field="cb_imagetype" /]}

{cb: THE IMAGE } around the image...

As limitations, also it's not working into a personnalised module, too bad...

J! 4.x - CB 2.7.3
Last edit: 10 years 1 week ago by crony.

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

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
10 years 6 days ago - 10 years 6 days ago #252043 by crony
If I may suggest an upgrade for this plugin to :

1.render cb fields into module positions
2.rendering without any "{" , "}" or "cb" printed around rendered variable.

Thanks !

J! 4.x - CB 2.7.3
Last edit: 10 years 6 days ago by crony.

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

Moderators: beatnantkrileon
Powered by Kunena Forum