getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

Enable email tag to use additional parameters without cluttering anchor text #124

Closed peterkelm closed 8 years ago

peterkelm commented 8 years ago

This modification enables the use of additional parameters (like subject) in the mailto email argument without displaying these in the anchor text (that is derived from the email argument if the 'text' argument is empty).

E.g. (email: info@domain.com?subject=Website Contact) now generates

<a href="mailto:info@domain.com?subject=Website Contact">info@domain.com</a>

instead of <a href="mailto:info@domain.com?subject=Website Contact">info@domain.com?subject=Website Contact</a>

This seems to be a much simpler alternative to the approach discussed in the forums: https://forum.getkirby.com/t/kirbytext-email-with-subject/599

bastianallgeier commented 8 years ago

Great little improvement! I just added it to the develop branch :+1: