We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

SAEF with ngen file field does work

Development and Programming

bretjg's avatar
bretjg
10 posts
16 years ago
bretjg's avatar bretjg

Hello,

I am using the file field 1.0 on my SAEF. Quite simply it doesnt work. If I go into the back end and use it it works fine. Then when I go back to the SAEF and refresh I can see the image etc there. When I submit the SAEF it then deletes the field/image from my entry.

I am using EE 1.6.8

Here is a shortened version of the embedded SAEF (to edit existing entires):

{exp:weblog:entry_form weblog="restaurants" return="members/account"}

    {exp:weblog:entries weblog="restaurants" dynamic="off" entry_id="{embed:id}"}
        
      <input type="hidden" name="url_title" value="{url_title}" />
      
      <input type="hidden" name="entry_id" value="{entry_id}" />
      
      <input type="hidden" name="entry_date" value="{entry_date format="%Y-%m-%d %H:%i"}" />
      
      <input type="hidden" name="dst_enabled" value="{dst_enabled}" />
      
      {categories}
          
          <input type="hidden" name="category[]" value="{category_id}" />
      
      {/categories}
      
      <!-- ============================ 
           Basic Information
      ============================  -->
      
      <fieldset class="weblog_entry">
      
          <legend>Restaurant Information</legend>
      
        <div class="row">
        
            <div class="container">            
      
              <h2>Logo</h2>
                
            {logo}
                           
            </div> <!-- End .container -->
            
            <div class="container">
        
                For best results your logo should be set at 72 dpi and should be no more than 200px high or 400px wide. We recommend jpg, gif or png file formats for best results.
            
            </div> <!-- End .container -->    
        
          </div> <!-- End .row -->
      
      </fieldset>
      
      <input type="image" src="{site_url}images/submitButton.gif" class="submit" />
      
    {/exp:weblog:entries} 
      
{/exp:weblog:entry_form}

This SAEF is embedded into a template:

{exp:weblog:entries weblog="restaurants" author_id="CURRENT_USER" limit="1" show_future_entries="yes"}
                
    {if no_results}
        
        <div class="notice">
                          
            It looks like you do not have your profile filled out. Your first step is to add information about your restaurant:
                          
        </div>
                                            
        {exp:weblog:entry_form weblog="restaurants" return="members/account"}
                
            <-- here is the SAEF for no entries -->
                                                                                                                                
        {/exp:weblog:entry_form}
    
    {/if}
                                        
    {embed=members/.embed-profile id="{entry_id}"} <!-- Here is the SAEF to edit an existing entry -->
                                        
{/exp:weblog:entries}

Attached is a screen shot of the ngen file field settings. Any assistance would be greatly appreciated.

[Mod Edit: Moved to the Extensions forum]

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.