Keyword

Create extra field with mailto

  • Siracee
  • Siracee's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78996 by Siracee
Create extra field with mailto was created by Siracee
I have a free directory I'm setting up using k2 and want the directory listing contact email address to be
hidden but to have a clickable link is there any way to do this using
the extra fields? Ideally I'd like a 'click here' but not the full email address, however I'm struggling to get any active link to show up.Would welcome any suggestionsthanksSiracee

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #78997 by Simon Wells
Replied by Simon Wells on topic Create extra field with mailto
I think in this case, it might be worth using JText label to display the Click Here link, whilst pointing to the required email data.

Regards,

K2joom.com

Please Log in or Create an account to join the conversation.

  • Siracee
  • Siracee's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78998 by Siracee
Replied by Siracee on topic Create extra field with mailto
Thanks for the reply, was just about to go and sort out the JText label when I had that lightbulb moment and tried again using the extra field 'link' feature, have managed to create an email link using 'click here' as the text and then a This email address is being protected from spambots. You need JavaScript enabled to view it. as the link.

I haven't used JText in this context before so not sure how it would work but can you tell me would using JText make the email address more secure from being spammed than doing it this way?

K2Joom said:I think in this case, it might be worth using JText label to display the Click Here link, whilst pointing to the required email data.
Regards,

K2joom.com

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #78999 by James McCarthy
Replied by James McCarthy on topic Create extra field with mailto
I just tried the link extra field with "Email Me" in the text and mailto: in the URL but it added http: before the mailto. How did you prevent that in your link?

Please Log in or Create an account to join the conversation.

  • Siracee
  • Siracee's Avatar Topic Author
  • Offline
  • New Member
More
14 years 8 months ago #79000 by Siracee
Replied by Siracee on topic Create extra field with mailto
The extra field does appear with the http: already showing so when inputting the data I'm having to delete the http: and put the mailto: in instead, its not ideal but it is giving me the result I need. But I am adding data via Joomla admin not through the frontend.

James McCarthy said:I just tried the link extra field with "Email Me" in the text and mailto: in the URL but it added http: before the mailto. How did you prevent that in your link?

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #79001 by James McCarthy
Replied by James McCarthy on topic Create extra field with mailto
Oh, I see. I think I'll try to locate the http:// in the code and remove it so I can add any kind of link I want without worrying about accidently leaving the http in there. Thx.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum