ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SAEF working in one weblog but not the other ?????? Please help it's driving me mad.

September 28, 2010 7:05pm

Subscribe [2]
  • #1 / Sep 28, 2010 7:05pm

    stuarthutchinson

    12 posts

    OK I have a SAEF in one of my weblogs which works fine. It is a variation on the one published i the user guide and is in essence just grabbing the custom fields. There is a FF Checkbox field but other than that nothing special.

    In a second weblog I have used the identical form code, changing the weblog name as required. Yet nothing shows on the page. Everything stops at the exp:weblog:entry_form tag, then continues after the tag. If I change the weblog name to the original the form works fine.

    I am using 1.69 with FF checkbox, Playa and Solspace User installed.

    Anyone got any ideas, I’m sure I’ve missed something simple, just can’t see the wood for the trees.

    TIA

    Stuart

    ps here’s the page code:

    {embed="embeds/header"}
    {embed="embeds/page_header_nav"}
    
    <div id="body">
            <div class="full_width">
                    <div class="head">
                        
                        <h1>Add Registry Entry</h1>
                     
                    </div>
                    <div class="content">
                        <h4>Use the form below to add a new entry to the Register</h4>
    <p>If you require assistance completing this form please <a href="http://{path=registry/help}">click here for guidance</a><br />
    Please note those fields marked * are mandatory.<br />
                   {exp:weblog:entry_form weblog="register" return="register/submitted" preview="register/entry"}</p>
    
    <p><table><br />
    <tr><br />
    <td></p>
    
    <p>Name of Organisation</p>
    
    <p><input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p></p>
    
    <p><br />
    <input type="hidden" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p></p>
    
    <p>{custom_fields}<br />
    {if required}* {/if}{field_label}</p>
    
    <p>{if textarea}<br />
    <textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea><br ><br />
    {/if}</p>
    
    <p>{if textinput}<br />
    <input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50"><br ><br />
    {/if}</p>
    
    <p>{if pulldown}<br />
    <select id="{field_name}" name="{field_name}"><br />
    {options}<option value="{option_value}"{selected}>{option_name}</option>{/options}</p>
    
    <p></select><br />
    {/if}</p>
    
    <p>{if date}<br />
    <input type="text" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50"><br ><br />
    {/if}</p>
    
    <p>{if relationship}<br />
    <select id="{field_name}" name="{field_name}"><br />
    {options}<option value="{option_value}"{selected}>{option_name}</option>{/options}</p>
    
    <p></select><br />
    {/if}</p>
    
    <p>{if "{field_name}" == "field_id_15"}<br />
                   {membership_info}<br />
                {/if}</p>
    
    <p>{/custom_fields} </p>
    
    <p></td><br />
    <td valign="top"></p>
    
    <p><input type="submit" name="submit" value="Submit" /></p>
    
    <p><br />
    {status_menu}<br />
    Status</p>
    
    <p><select name="status"><br />
    {select_options}<br />
    </select></p>
    
    <p>{/status_menu}</p>
    
    <p>Date </p>
    
    <p><input type="text" name="entry_date" value="{entry_date}" maxlength="23" size="25" /></p></p>
    
    <p></td><br />
    </tr><br />
    </table></p>
    
    <p>{/exp:weblog:entry_form}<br />
                    </div><!-- /content --><br />
                </div><!-- /full_width --><br />
            </div><!-- /body --><br />
    {embed="embeds/footer"}<br />
        </div><!-- /wrapper --><br />
    </body><br />
    </html>

  • #2 / Sep 29, 2010 10:45am

    Sue Crocker

    26054 posts

    Stuart, you may want to consider adding in some code to make sure you’re logged in.

    {if logged_in}
    You're logged in!
    {if:else}
    You're logged out!
    {/if}

    Make sure you’re still considered logged in when viewing that template.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases