Dynamically Email URL

rseigel 02 Mar, 2014
I'm trying to dynamically (depending which URL it is coming from) email and store part of the URL.

URL is index.php/heating/furnaces/smartair-100

The part I want to pass is the "smartair-100".

Any ideas?

Thanks,

Ron
calculus00 02 Mar, 2014
Hello rseigel,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How to send an Email dynamically
P.S: I'm just an automated service😉
rseigel 02 Mar, 2014
Unfortunately, this doesn't help.
Max_admin 02 Mar, 2014
Answer
Hi Ron,

You will need to check the Joomla function for getting the url info, then use the value you need in the email template between php code tags, or in a "custom code" action before a "db save".

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rseigel 03 Mar, 2014
It's a beautiful thing....

I put:

<tr><td>URL:</td><td><?php echo JURI::current(); ?></td></tr>


in the Email Template section of the email action and it works!🙂

Just thought someone else could benefit from this.

Thanks a ZILLION Max.
rseigel 03 Mar, 2014
It gives me the full URL BTW.

I suppose I could pull out the last bit with a snippet of php but this works for my needs.
This topic is locked and no more replies can be posted.