Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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