You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#104134 external link

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by reigi on Monday, 22 November 2021 12:51 GMT

heiken
Hello, I would like to mark my external links with an icon so that users know that they are now leaving the page. Is that a JCE shot? Or from Joomla ?? Or from the Themler designer? I am at a loss. Who can help me? Kind regards

Ryan
You can do this with some css. Please post a link to your site so I can create and test some css for you to use.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

heiken
Hi, here is a link:
https://tanzschule-schwerin.com/index.php?option=com_content&view=article&id=230:2-friedensfest-in-schwerin&catid=27&Itemid=166&lang=de

die folgende Anweisung fand ich im Netz:

.external-link:after {
color: #1e4678;
padding-left: 4px;
font: normal normal normal 14px/1 FontAwesome;
content: „f08e“;
}

Aber irgend wie funktioniert das nicht.

mfg

Ryan
Try adding this to your template stylesheet:

@font-face {
	font-family: 'IcoMoon';
	src: url('/media/jui/fonts/IcoMoon.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

a[href^="http"]:after {
  color: #1e4678;
  padding-left: 0.5rem;
  font-family: IcoMoon;
  content: "\26";
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

heiken
DANKEEEEE!

reigi
Is it possible to add an "external link" (possibly + URL) to the title-field?

Ryan
[quotePost id="109502"]Is it possible to add an "external link" (possibly + URL) to the title-field?[/quotePost]

Which title field are you referring to? The link's title attribute?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

reigi
yes. see screenshot

Attachments

Ryan
You can add a URL to the title field, but the title attribute value cannot contain HTML code.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

reigi
Sorry, I didn't make that clear enough. I would like something like the one in the screenshot, just a hint that the link is an "external link" + possibly the URL in plain text. I found it here https://webdesign.weisshart.de/fenster.php

Attachments

Ryan
Yes, that should work. What happens when you try adding it?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

reigi
I'm not a programmer. I didn't know where and how 😉

Ryan
Add it in the Title field when you create the link, eg:

https://cdn.joomlacontenteditor.net/tmp/104134-external-link-2.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

reigi
that's the easiest way 😃
I thought of an option in the JCE Link Manager to do this automatically for a link that starts with "http".