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.

Can't get SAEF example to show any content

April 06, 2008 9:26pm

Subscribe [2]
  • #1 / Apr 06, 2008 9:26pm

    Holly Hill

    19 posts

    I’m logged in as a superadmin but when I try to copy paste the example of the standalone entry form I get a blank page.

    I’ve read the instructions on: http://expressionengine.com/docs/modules/weblog/entry_form.html

    I’ve tried changing everything I can think of like:

    {exp:weblog:entry_form weblog="nomatterwhatblog" return="any/index" preview="any/entry"}

    Any ideas?

  • #2 / Apr 06, 2008 9:38pm

    Lisa Wess

    20502 posts

    Holly, on that template, can you put {group_title} and see what group it’s returning? I suspect it doesn’t see you as logged in.

  • #3 / Apr 06, 2008 9:41pm

    Holly Hill

    19 posts

    It won’t even process {group_title}.

    Completely does not process anything between exp:weblog:entry_form tags. Any html before and after is processed normally. Its as if it just skips it.

    I’m editing it from the template editor when I’m logged into the CP. Shouldn’t that default to seeing me as logged in when I hit “view rendered template”?

  • #4 / Apr 06, 2008 9:50pm

    Lisa Wess

    20502 posts

    Place {group_title} outside the form tags.  Also, what version and build of EE are you on?

  • #5 / Apr 06, 2008 9:54pm

    Holly Hill

    19 posts

    It just prints it out as “{group_title}” if I put it outside those tags.

    We’re using version 1.6.0 Build: 20070622

    Now I put some other tags below it and they process fine but {group_title} doesn’t work there either (it just prints it out as raw text which is so bizarre).

    {exp:weblog:entries limit="1"}
    
    g = {group_title}
    
    {date_heading}
    <h2 class="date-header">{entry_date format=' %l, %F %d, %Y'}</h2>
    {/date_heading}
    
    
    <div class="post">
    <h3 class="post-header">{title}</h3>
    
    <div class="post-summary">
    {summary}
    {body}
    {extended}
    </div>
    
    
    <div class="post-details">
    
    Posted by <a href="http://{profile_path=member/index}">{author}</a> in
    {categories}
    • <a href="http://{path=SITE_INDEX}">{category_name}</a>
    {/categories}
    
    
    <a href="http://{title_permalink=projex/index}">Permalink</a>
    
    </div>
    </div>
    {/exp:weblog:entries}
  • #6 / Apr 07, 2008 11:09am

    Robin Sowell

    13255 posts

    Try it outside of any tags (though it worked for me exactly as posted).  Also- I’d go ahead and upgrade- you aren’t that far back, but bug fixes may make our results differ.  Also- can you paste the exact template you’re testing right now?

  • #7 / Apr 07, 2008 12:16pm

    Lisa Wess

    20502 posts

    Ah, {group_title} was introduced in 1.6.1 I believe.  Can you try using {group_id} instead, and see what group ID you’re in?

    As Robin said, upgrading would be one of the first things to try out. =)

  • #8 / Apr 07, 2008 2:37pm

    Holly Hill

    19 posts

    Aha. Group_id worked! my group id = 1, so it sees me as logged in (as I thought it did). Below is my actual template:

    {assign_variable:master_weblog_name="projex"}
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang}" lang="{lang}">
    <head>
    <title>{exp:weblog:info weblog="{master_weblog_name}"}{blog_title}{/exp:weblog:info}</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
    
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=projex/weblog_css}' />
    <style type='text/css' media='screen'>@import "{stylesheet=projex/weblog_css}";</style>
    
    </head>
    
    <body>
    1
    
    {exp:weblog:entry_form weblog="{master_weblog_name}" return="{path=SITE_INDEX}" preview="sg/entry"}
    hello
    
    {group_id}
    
    Title
    
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" />
    
    hello
    
    {custom_fields}
    {if required}* {/if}{field_label}
    
    
    {if textarea}
    <textarea name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea>
    {/if}
    
    {if textinput}
    <input type="text" dir="{text_direction}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
    {/if}
    
    {if pulldown}
    <select name="{field_name}">
    {options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
    </select>
    {/if}
    
    {if date}
    <input type="text" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
    {/if}
    
    {if relationship}
    <select name="{field_name}">
    {options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
    </select>
    {/if}
    {/custom_fields} 
    
    {/exp:weblog:entry_form}
    
    
    
    {exp:weblog:entries limit="1"}
    
    g = {group_id}
    
    {date_heading}
    <h2 class="date-header">{entry_date format=' %l, %F %d, %Y'}</h2>
    {/date_heading}
    
    
    <div class="post">
    <h3 class="post-header">{title}</h3>
    
    <div class="post-summary">
    {summary}
    {body}
    {extended}
    </div>
    
    
    <div class="post-details">
    
    Posted by <a href="http://{profile_path=member/index}">{author}</a> in
    {categories}
    • <a href="http://{path=SITE_INDEX}">{category_name}</a>
    {/categories}
    
    
    <a href="http://{title_permalink=projex/index}">Permalink</a>
    
    </div>
    </div>
    {/exp:weblog:entries}
    
    
    2
    </body>
    </html>
  • #9 / Apr 07, 2008 3:26pm

    Lisa Wess

    20502 posts

    Well we have some progress!  Have you tried this with the default form, straight from the docs, with absolutely nothing else in the template?

  • #10 / Apr 07, 2008 4:48pm

    Holly Hill

    19 posts

    Yup, I just changed the template to nothing but the default entry_form from the documentation and its still blank.

    I will upgrade the install later tonight and get back to you.

  • #11 / Apr 07, 2008 4:50pm

    Lisa Wess

    20502 posts

    Alright, let us know either way and we’ll investigate this further if needed.  Thanks, Holly!

  • #12 / Apr 20, 2008 5:42pm

    Holly Hill

    19 posts

    OK, so I upgraded to the latest build of 1.6.3 today.

    I’m still having this problem.

    {group_title} and {group_id} are working and show that I am logged in as a superadmin.

    I’ve tried also just copying and pasting the raw example code for the SAEF from the documentation but that also just shows up as blank.

    Any ideas?

  • #13 / Apr 21, 2008 9:16am

    Sue Crocker

    26054 posts

    Holly, the example code uses:

    weblog="default_site"

    Do you have a weblog named default_site? If the weblog listed in the code doesn’t exist, or if you fail to provide one, you’ll get a blank page.

  • #14 / Apr 21, 2008 2:36pm

    Holly Hill

    19 posts

    Yes! That was it, the weblog value was wrong. I’ll play around with it some more and see if I run into any other issues.

  • #15 / Apr 21, 2008 2:55pm

    Sue Crocker

    26054 posts

    Whew! Glad you were able to figure it out. We can keep this open for a day or so.

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

ExpressionEngine News!

#eecms, #events, #releases