Page 1 of 1

How to create clickable {email-name} and {domain-name}tag

Posted: Sun Dec 10, 2006 4:17 am
by WebGirl
Hi there,

My client wants to be able to type an email name into a field, which then appears on the webpage as a 'clickable' link.

I've gone through the Forum and can't find an answer - maybe I'm searching for the wrong keywords.

I've seen the smarty tag, but the email names need to be entered only when required, not 'fixed' in the template.

I need the same solution for a domain name.

Are there two tags I haven't found yet, which will allow my client to do this?

I'm sure there are ... but after spending an hour reading the forum, I just need to solve it - thanks everyone! :)

Re: How to create clickable {email-name} and {domain-name}tag

Posted: Sun Dec 10, 2006 5:42 am
by WebGirl
Hi there Mark, Ho ho ho Merry Xmas/Happy Holidays!

My client will be adding pages for their own clients, and some will have email and domain names.

My client won't be using the 'templates' as such, they just want to copy and paste the 'email' or 'domain' name into a text box [or field].

My question is - how do I make that text automatically 'clickable'?  People visiting the website will need to be able to click the email and domain names.

Sorry if I'm not making sense :)

Re: How to create clickable {email-name} and {domain-name}tag

Posted: Tue Jan 09, 2007 2:38 pm
by RonnyK
WebGirl,

I'm not sure if this helps, or is the solution you're looking for. "Form Builder" has a field of the type "*Email Results Based on Pulldown". In this field you can type anything and link it to an mail-address. If someone uses the form, he/she can choose out of the pull-down-list and the mail is sent to the corresponding mail-account.

I'm using it myself and it works for me. One thing is, that the choosen entry of the pull-down-list, becomes the subject in the mail. I'd rather had a typed subject, instead of the fixed one of the pull-down, but now I put the subject-line additional in the mail-content.

Ronny

Re: How to create clickable {email-name} and {domain-name}tag

Posted: Tue Jan 09, 2007 3:15 pm
by alby
WebGirl wrote: My client wants to be able to type an email name into a field, which then appears on the webpage as a 'clickable' link.
.....
I need the same solution for a domain name.
A simple mode but it's not automatic:
Add in template 2 content block:

Code: Select all

....
{content block="email"}
....
{content block="domain"}
....
Alby

Re: How to create clickable {email-name} and {domain-name}tag

Posted: Tue Jan 09, 2007 8:03 pm
by petert
alby wrote:

A simple mode but it's not automatic:
Add in template 2 content block:

Code: Select all

....
{content block="email"}
....
{content block="domain"}
....
Now it is automatic:

Code: Select all

....
{content block="email" assign="email"}
{email address="$email" linkname="$email"}

{content block="domain" assign="domain"}
<a href='{$domain}'>{$domain}</a>

Re: How to create clickable {email-name} and {domain-name}tag

Posted: Wed Jan 10, 2007 9:08 am
by WebGirl
thanks everyone, I really appreciate your suggestions :)  I'll play with the codes you've provided and see what I come up with.

PeterT, I just have to wonder what your avatars are doing to each other, then I laughed out loud when I saw your sig file ...

I already offer cmsms and website baker for my clients, and have been toying with offering joomla, despite my first reaction to it a few months back.  You've just given me a virtual slap and reminded me .... "Don't do it!!"

Thanks! :D

UPDATE 8 Feb 07 : Well, I still haven't really solved this. I thought I could use a User Defined Tag, but the tricky bit is that this is in the NEWS MODULE.  I thought I could add something to the DETAIL template, but still trying to work it out.  My client needs to be able to add the email name as the details are being added - it has to be simple. Any other suggestions?