TOPIC:

How to create an external link? 3 years 8 months ago #222115

  • heinzeric's Avatar Topic Author
  • heinzeric
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 106
  • Thanks: 1
Hi Darko,

it works fine, I will send you a mail as well.

Thanks
heinzeric

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

How to create an external link? 3 years 8 months ago #222199

  • heinzeric's Avatar Topic Author
  • heinzeric
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 106
  • Thanks: 1
All problems are solved. Many thanks to all of you.
heinzeric

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

How to create an external link? 3 years 8 months ago #222226

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Awesome. Let us know if you need anything else.

KInd regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

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

How to create an external link? 2 years 8 months ago #233897

  • marszh
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 0
Hi

I also tried to generate an external link from a CB input field in a CB view. In the article template I used the code:
{hide-if-empty myfield}For more Info visit: <a href="{myfield:value}">Link</a>{/hide}
However, the outcome is not what I was looking for. When the input url in the textfield is something like www.google.com , in CB view this generates a link, but only with the address
https://mywebsite/{myfield:value}
instead of something like www.google.com

I can display the url as normal text in the CB view if there is no <a...></a> wrapping it, but of course there is no link then. When using the wrapping, the value from the input field is ignored and the code {myfield:value} is displayed instead. Is there a plugin I might need or what can I do?

Thanks a lot in advance!

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

How to create an external link? 2 years 8 months ago #233937

  • heinzeric's Avatar Topic Author
  • heinzeric
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 106
  • Thanks: 1
Hi Marszh,

Darko did help me with it by making the needed code at my backend.
He filled in in CB view this "item wrap code":
<?php ($value == '') ? $value = '-' : $value = '<a href="'.$value.'" target="_blank">Video</a>'; ?>[co/de]

The first part till ":" is to create a "-" in the list on frontend since there is no link stated. 
The word "Video" get shown in this case if there is put in the link one want to refere to while editing the particular item on frontend. 
If your frontend list did not get shown all columns than for the column that only get show in the items view you need to file in at "item wrap code":
[code]<a href="{value}" target="_blank">Noten</a>

Just have a look on my site how it worsk fine: [url=http://xn--lrik-0ra.de/]WerkverzeichnisWerkverzeichnis[/url]

Hope it helps
heinzeric

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

How to create an external link? 2 years 8 months ago #234115

  • marszh
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 0
Hi Heinzeric

Many thanks for your reply! I did what you suggested, but can't see any change, unfortunately. Or did I get it wrong? I did put the code
<?php ($value == '') ? $value = '-' : $value = '<a href="'.$value.'" target="_blank">Link</a>'; ?>

in the filed 'item wrap code' in CB view in the line with the input field which I would use to insert the url. Is this the right place?

I've checked your site and it seems to work perfectly there! This is what I hope for my site, too... Any hint for what I did wrong?

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

Time to create page: 0.075 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!