I'm writing a howto on my site. One of the things I want to do is inside of a <pre> tag, I want to be able to place an e-mail address - like one would find in configuration file.
I did but Joomla (or the JCE Editor) keeps turning it into a "mailto" link.
Re: SOLVED Prevent e-mail address from becoming link
Posted 17 years 3 weeks ago
I'm curious why you would want to display an email address but not have it linked?
[sorry for being nosy ]
The member formerly known as Roland Deschain After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
Re: SOLVED Prevent e-mail address from becoming link
Posted 17 years 3 weeks ago
Roland Deschain wrote:
I'm curious why you would want to display an email address but not have it linked?
In this case, I'm showing the contents of an application's configuration file. Like the Apache configuration file, httpd.conf. Inside that configuration file is a line that tells the application the e-mail address of the web master. This is just for the person viewing my site's information and is not meant for the them to be able to actually send an e-mail vai a link.
The problem that I'm having is that once the e-mail address is linked, it is actually being forced onto a new line in the rendered page - this really screws with the formatting and may throw my viewer off if they don't know what they're doing.
You can see this by looking at the HOWTO on my site:
http://klcollins.org/content/view/47/50/
. The problem is at the bottom of the page, in the area entitled "Virtual Host Configuration File Template"
So I simply need Joomla to display the text that I put in - which is what I thought the <pre> tag was for. Roland Deschain wrote:
[sorry for being nosy ]
Not a problem. That's how we learn!
Apache Experts: This howto is a work in progress, there are holes in it and I know it. This is presently for my information and I will be modifying it as I learn new things.
Displays: This email address is being protected from spambots. You need JavaScript enabled to view it. (without the mail:to tag)
...using an image is another option.
But will that work inside of <pre> tags? (Not tried it yet, so I don't know).
UPDATE
Yes!!! This works. I just tried and it makes the rendered code look exactly the way I want. Thanks again!.