Dynamically Email URL

How to dynamically email and store a specific part of a URL in ChronoForms.

Overview

The issue is extracting a segment from the current page URL to include in an email.
Use a Joomla function within the CF email template to retrieve the full URL, then optionally process it to isolate the needed segment.

Answered
rs 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
rs rseigel 02 Mar, 2014
Unfortunately, this doesn't help.
Max_admin 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.
rs 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.
rs 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.