Hi there,
I was wondering if it's possible to insert Wordpress variables such as bloginfo( 'name' ); ? I'd like to use this for the email notifications...
thnx!
-jennyb
Hi there,
I was wondering if it's possible to insert Wordpress variables such as bloginfo( 'name' ); ? I'd like to use this for the email notifications...
thnx!
-jennyb
Our notifications section doesn't allow this. I guess my question would be "why do you want or need it?" You could use gform_pre_render to add the details to a hidden field in a form, so that you could then use a merge tag with the information in your notification, but these kinds of things are fairly static. Your blog name doesn't change often, does it?
Hi David,
Thanks for the speedy reply. In this instance, I'm running GF on a multisite install. Each site, except the main site, has the same form. However, although the information is the same, I'd like to personalize the email notifications with something like "Hello [blogname], you've received a new message."
Ideas about how I might go about this?
thnx!
-jennyb
Yeah, we don't have a merge tag for that. Check out all of our merge tag options here:
http://www.gravityhelp.com/documentation/page/Merge_Tags
You would not only have to create a field in the form, but also add to their functions.php file to grab the site title and push it into a field so you could use it in the notifications settings. I'm sure that isn't as easy as you were hoping, but there is no automated way for us to currently do what you are requesting.
I believe the email notifications will process shortcodes. If that works for you, you could always grab a plugin which provides a 'bloginfo' shortcode, and use the shortcode in the notification, something like [bloginfo key='name']. Something like this function right here:
http://css-tricks.com/snippets/wordpress/bloginfo-shortcode/
Hey thanks Chris - just revisiting this now after all this time. Got side-tracked from this particular project for a while, but this is a great lead, cheers!
-jennyb
Let us know if it does not work out. I use those shortcodes all the time now for places where I don't allow users to use PHP.