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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
WebGirl

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

Post 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! :)
WebGirl

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

Post 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 :)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
alby

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

Post 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
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

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

Post 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>
Last edited by petert on Wed Jan 10, 2007 3:36 pm, edited 1 time in total.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
WebGirl

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

Post 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?
Last edited by WebGirl on Thu Feb 08, 2007 6:27 am, edited 1 time in total.
Locked

Return to “CMSMS Core”