How to create an external link?

  • heinzeric
  • heinzeric's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 96
  • Thank you received: 1

heinzeric replied the topic: How to create an external link?

Hi Darko,

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

Thanks
heinzeric
#222115
  • heinzeric
  • heinzeric's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 96
  • Thank you received: 1

heinzeric replied the topic: How to create an external link?

All problems are solved. Many thanks to all of you.
heinzeric
#222199
  • Posts: 2154
  • Karma: 67
  • Thank you received: 264

DarkoCujic replied the topic: How to create an external link?

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!
#222226
  • Posts: 13
  • Thank you received: 0

marszh replied the topic: How to create an external link?

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!
#233897
  • heinzeric
  • heinzeric's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 96
  • Thank you received: 1

heinzeric replied the topic: How to create an external link?

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
#233937
  • Posts: 13
  • Thank you received: 0

marszh replied the topic: How to create an external link?

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?
#234115
Moderators: tomeperica
Time to create page: 0.090 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here