<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Tag: Content Template - Recent Posts</title>
		<link>https://legacy.forums.gravityhelp.com/tags/content-template</link>
		<description>Gravity Support Forums Tag: Content Template - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 16:34:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/tags/content-template" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Posts are Being Closed without any Comments"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/posts-are-being-closed-without-any-comments#post-317489</link>
			<pubDate>Tue, 11 Jun 2013 16:36:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">317489@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Louise, you can handle this in your theme, but not in the content template.  If/Then/Else statements are not supported in the content template in Gravity Forms.  However, you can create a page template to use for your Gravity Forms testimonial submissions which has logic which says, in effect:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
if (there was an image uploaded) {
  use that image in the post;
}
else {
  use this default image;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That is how you can do it in the page template.&#60;/p&#62;
&#60;p&#62;If you did not want to do that, you can use the gform_pre_submission_filter to insert the value for a default image, into the field where the upload would go, if the upload field is empty when the form is submitted.  The documentation for the gform_pre_submission_filter can be found here:  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>studio57designs on "Posts are Being Closed without any Comments"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/posts-are-being-closed-without-any-comments#post-317486</link>
			<pubDate>Tue, 11 Jun 2013 16:26:02 +0000</pubDate>
			<dc:creator>studio57designs</dc:creator>
			<guid isPermaLink="false">317486@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Rob.....I did not mean to post twice....the forum wasn't responding after I hit the &#34;submit post&#34; button.&#60;/p&#62;
&#60;p&#62;I've created a testimonial form that posts to a page after submission.  The submitter is able to upload a picture with their testimonial...which works fine.  But, I'm wanting to add a default image, if they do not submit an image.&#60;/p&#62;
&#60;p&#62;I am using the Content Template and I don't see any way to have a default (if/then) type statement.&#60;/p&#62;
&#60;p&#62;How is this handled?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Louise
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Posts are Being Closed without any Comments"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/posts-are-being-closed-without-any-comments#post-317477</link>
			<pubDate>Tue, 11 Jun 2013 16:19:07 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">317477@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Louise,&#60;/p&#62;
&#60;p&#62;It looks like that post got spammed, so not our fault there. As such, we are unable to view that post - would you mind copying and pasting your issue into this thread for us?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>studio57designs on "Posts are Being Closed without any Comments"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/posts-are-being-closed-without-any-comments#post-317473</link>
			<pubDate>Tue, 11 Jun 2013 16:17:44 +0000</pubDate>
			<dc:creator>studio57designs</dc:creator>
			<guid isPermaLink="false">317473@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This post &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/default-image-when-using-content-template&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/default-image-when-using-content-template&#60;/a&#62; was closed....not sure why....maybe that's why I never got a response and then I opened another and it was closed as well.&#60;/p&#62;
&#60;p&#62;Support has always been good.  What's up?&#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated. Please don't close the post.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Louise
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Optional items in content template?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optional-items-in-content-template#post-306078</link>
			<pubDate>Thu, 06 Jun 2013 11:32:50 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">306078@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you got it sorted. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rdell on "Optional items in content template?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optional-items-in-content-template#post-306077</link>
			<pubDate>Thu, 06 Jun 2013 11:24:19 +0000</pubDate>
			<dc:creator>rdell</dc:creator>
			<guid isPermaLink="false">306077@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What a response - fixed in 2 mins thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Optional items in content template?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optional-items-in-content-template#post-306065</link>
			<pubDate>Thu, 06 Jun 2013 11:12:30 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">306065@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Look at our Conditional Shortcodes - &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Shortcodes&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Shortcodes&#60;/a&#62; Half way down the page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rdell on "Optional items in content template?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optional-items-in-content-template#post-306057</link>
			<pubDate>Thu, 06 Jun 2013 11:10:26 +0000</pubDate>
			<dc:creator>rdell</dc:creator>
			<guid isPermaLink="false">306057@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have a simple form generating a Post that has a Y/N choice to File Upload.&#60;br /&#62;
Can't see a way of setting the content template depending on the Y/N choice:&#60;/p&#62;
&#60;p&#62;Post Body:&#60;br /&#62;
{News Body:12}&#60;br /&#62;
&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt; Next line if Choice = Y &#38;gt;&#38;gt;&#38;gt;&#38;gt;&#38;gt;&#38;gt;&#60;br /&#62;
[gview file=&#34; {Attachment to be uploaded? (pdf only):18}&#60;br /&#62;
&#34; save=&#34;0&#34;] &#60;/p&#62;
&#60;p&#62;Any suggestions to workaround please?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can this be done?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-this-be-done#post-300115</link>
			<pubDate>Tue, 04 Jun 2013 00:33:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">300115@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We don't offer any support in our pre-purchase forum.  If you're a Gravity Forms license holder, please use our regular support forums and post a new topic there.  We'll be happy to help you if we can.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/forum/gravity-forms#postform&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/forum/gravity-forms#postform&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Samantha on "Can this be done?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-this-be-done#post-299370</link>
			<pubDate>Mon, 03 Jun 2013 13:59:33 +0000</pubDate>
			<dc:creator>Samantha</dc:creator>
			<guid isPermaLink="false">299370@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;P.S. I removed the time. It is published to Pending Review. However, the post date is not replace default date. Please advise. Thank you.&#60;/p&#62;
&#60;p&#62;Code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;set_post_date&#38;quot;, 10, 3);
function set_post_date($post_data, $form, $entry){
  //only do this when the form id is 2
  if($form[&#38;quot;id&#38;quot;] != 2)
    return $post_data;

  //set post date to field on form if date provided; get from entry data
  //using a date field in mm/dd/yyyy format and a time field in 24 hour format
  $date_value = $entry[&#38;quot;9&#38;quot;]; //pull the date value from the form data posted, field 9 on my form
  //$time = $entry[&#38;quot;7&#38;quot;]; //pull the time value from the form data posted, field 7 on my form
  //only change post date/time when a date has been chosen
  if (!empty($date_value))
  {
        //convert post date to the appropriate format so it will be inserted into the database
    $post_date = date(&#38;quot;Y-m-d H:i:s&#38;quot;,strtotime($date_value . &#38;quot; &#38;quot; . $time_value));
    $post_data[&#38;quot;post_date&#38;quot;] = $post_date; //set the post_date
  }
  return $post_data; //return the changed data to use when the post is created
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
