Skip to Content Skip to Menu

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

[SOLVED] Display canvas-image-url in other content or module?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
9 years 9 months ago #260959 by krileon
Please read this topic carefully. I've already explained in detail in addition to providing screenshots how to substitute the canvas field into other locations. CB Content Bot usage is provided directly above.


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.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 9 months ago #260966 by chanteur94
I'm not asking displaying avatar or canvas on module or article. That's ok.

I'm asking how to display canvas IN BACKGROUND (like <body background ...> with CANVAS for image.

Perhaps you already explain that but I don't find it (I'm not totally fluent in english)

Thank you.

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

9 years 9 months ago #260968 by avateamcom
Hello,
I'll check this evening for you. I did the same with canvas Image as you are requesting for. Please give me some time, I'll send you my solution tonight.

best regards,
Stefan

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
9 years 9 months ago - 9 years 9 months ago #260969 by krileon
If you output the element directly then I suppose it's doable by substituting in the raw substitution, which is the image URL. Example as follows (remove the '/ and ' in the URL; I've no idea why Kunena keeps adding that).

Code:
<div style="background-image: url(/[canvas]);"></div>

Sorry, you'll need to provide an example of your usecase as the need for this doesn't make much sense. The canvas HTML already handles this. There's no CSS for it to be rendered as a background image anywhere you like. You'd need to generate that CSS dynamically either inline or via CB Auto Actions and its Code action if the page has a display trigger.


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

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

9 years 9 months ago #260986 by avateamcom
Okay, now my solution to this topic as I opened it some weeks ago.. :)

I have a cb-content-module with the following text-content:

<div class="cb_template">[cb:userfield field="canvas" user="#me" /]<div class="content">Some text</div></div>

I show this in a specific module-position, but to get it working, the field "canvas" had to be visible! I moved it to another tab in order to hide it in the profile-tab.

Kyle helped me with the tabs-problem some topics below. just see here:
www.joomlapolis.com/forum/153-professional-member-support/228273-solved-display-canvas-image-url-in-other-content-or-module?start=6#258123

Best regards, I hope, I could help you!
-Stefan

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

Moderators: beatnantkrileon
Powered by Kunena Forum