| Using field tokens to create a custom URLs in EasyTable Pro |
|
With EasyTable Pro's field options you can combine several fields to produce a custom URL for each record. This FAQ assumes you know about EasyTable Pro's field tokens, you may want to read this article about the basics of using field tokens for substitution functions. There are lots of things you can do with URL's you may want a custom text for each click link or you may want to set a subject in an Email link, we'll look at both of these to try and provide you with a base skill set to help you achieve your goals on your website. For the purposes of this FAQ we're assuming our table has fields with the following names and alias.
Some typical records might be:
A custom link textRather than having the raw URL or the same link text for each row (eg. Click Here), a nice presentation might be "Click here to open MyBusiness's Website". Using the example table and records to achieve this with EasyTable Pro you need to take several steps first:
<a href="#website-url#" target="_blank">Click here to open #name#'s Website</a> NB: the target is set to open a new browser window. Now when EasyTable Pro renders the table any field tokens will be replaced by the values in those fields. With our example table this will product the following HTML:
A mailto: URLTo create a mailto: link, is a similar process, except this time we are adding options to the field with the email address in it.
<a href="mailto:#emailfield#?subject=Reference%20Number%20#reference-number#">Click here to send #name# an Email!</a>NB: the %20 is the HTML equivalent to a ' ' ie. a space.
|
RSForm!Pro is a powerful Joomla! form creator, helping you to create custom forms in minutes. The new product makes form management much easier and gives you the time to handle your clients better.
For only €19.00 how can you go wrong?
( We've used it for years... Shouldn't you? )
