Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-02-27 13:05:21

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] Automatically make links from URLs.

merz1 wrote:

Steve +1 for keeping the technical details under the hood when textiling links.

Markus, are you referring to this post about the “simplelinks” branch?


Steve

Offline

#14 2012-02-27 14:33:45

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [textile] Automatically make links from URLs.

Steve Yes


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#15 2012-02-27 17:37:17

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [textile] Automatically make links from URLs.

I also think the simplelinks branch makes sense. +1


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#16 2012-02-27 20:39:01

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] Automatically make links from URLs.

I’ve been playing (locally, not pushed to github yet) with a small extension to the simplelinks branch that ‘auto-classes’ links with their URL scheme (one of http, https, mailto or ftp). This adds the scheme, as a class, to all links and allows you to add CSS markup for any of the supported scheme types.

Example uses might include; showing a padlock graphic for https links or an email icon for mailto. Basically, allows you to visually distinguish between link schemes even if the scheme is omitted from the link text.


Steve

Offline

#17 2012-02-28 05:46:03

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: [textile] Automatically make links from URLs.

net-carver wrote:

I’ve been playing (locally, not pushed to github yet) with a small extension to the simplelinks branch that ‘auto-classes’ links with their URL scheme (one of http, https, mailto or ftp).

From my POV, I’d rather delegate such decorations to either CSS3 (a[href^="https://"] {...}) or Javascript.

Offline

#18 2012-02-28 09:52:41

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] Automatically make links from URLs.

wet wrote:

From my POV, I’d rather delegate such decorations to either CSS3 (a[href^="https://"] {...}) or Javascript.

I didn’t know that was possible, I need to do some more homework on selectors in CSS3. But yes, with power like that, there’s no need for the extra markup in the textile output.


Steve

Offline

#19 2012-02-28 23:56:06

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] Automatically make links from URLs.

Some updates posted to the simplelinks branch on github. If anyone wants to test and give feedback, please do so.


Steve

Offline

#20 2012-03-18 13:00:09

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] Automatically make links from URLs.

The “simplelinks” idea has been merged into the master branch and does not add any extra CSS classes.


Steve

Offline

Board footer

Powered by FluxBB