Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

Display URL link as a clickable button

  • Jaffa12
  • Jaffa12
  • OFFLINE
  • Posts: 13
  • Thanks: 1
  • Karma: 0
7 years 11 months ago #287993 by Jaffa12
Hi guys,

I have a URL field on each user's profile (cb_enrol). I would like the link to appear on each user's page as a clickable button instead of a text hyperlink. Is that possible?

I've tried using substitutions but I can't get it to work. This is the code I have added to Profile Value Layout:

<a target="_blank" href="[cb:url location="cb_enrol" /]"><img src=" privateschoolsguide.com/images/vacancy.png"/ >

It displays the button but it doesn't link correctly.

Hope you have a solution. Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
7 years 11 months ago #288014 by krileon
Replied by krileon on topic Display URL link as a clickable button
You need to substitute it in as follows. The URL substitution usage is for specific CB views and not for any URL.

Code:
<a href="[cb_enrol]" target="_blank">[value]</a>

The above should be placed in the profile value layout and userlist value layout parameters found under Parameters > Layouts while editing your field in CB > Field Management.


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: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum