By Jeremy Kosick on Friday, 19 January 2018
Posted in Technical Issues
Replies 1
Likes 0
Views 607
Votes 0
How do I add the custom fields and registration info to the admin email to approve the user who requesting access to the site? Is there a tag that I can easily use to populate the data in the emai?
Hi there,

You can add codes below on your emails accordingly.

[gist type="php"]
<?php $user = ES::user(); ?>
//URL are used for object name, change them acordingly
<?php $URL = $user->getFieldValue('URL'); ?>

<?php if ($URL instanceof SocialFieldValue && $URL->data) { ?>
<li class="o-nav__item t-text--muted t-lg-mb--sm">
<i class="es-side-widget__icon fa fa-link t-lg-mr--md"></i>
<?php echo $URL; ?>
</li>
<?php } ?>

[/gist]

Codes below are example only, you can find each unique field here http://take.ms/921W1, you can apply those unique key into getFieldvalue('insert here');

You can check those emails template here http://take.ms/MXN6a and for registrations, you can check them accordingly here http://take.ms/pirkJ

Please give it a try and see how it goes.
·
Friday, 19 January 2018 12:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post