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.

SafeCracker hidden div

September 13, 2011 7:08pm

Subscribe [3]
  • #1 / Sep 13, 2011 7:08pm

    Cartegraph

    83 posts

    I think this little guy is putting a break in my content that i wish to be displayed inline. Anyone know where this little guy lives?

    {exp:channel:entries channel="quicktip" orderby="date" sort="desc"}
                    
    <div>
    
    {quicktip-description}   <a href="http://{quicktip-link}">Read More</a> | {if member_group == '1' OR member_group == '10' OR member_group == '12'}{exp:safecracker channel="quicktip" entry_id="{entry_id}" return="honeybadger" class="inline"}<a href="#">Delete</a><input name="status" type="hidden" value="closed"/>{/if}{/exp:safecracker}
                    
    </div>
    
    {/exp:channel:entries}

    SafeCracker seems to handle alot of it’s through a div that contains hidden fields and I believe that that div is not allowing my content to be displayed inline. See attached screen capture

  • #2 / Sep 14, 2011 3:42am

    John Henry Donovan

    12339 posts

    Hi Luke,

    If you view the source of the page what do you get for one of those divs?

    What I have done before is put the safecracker form in another template and add some JavaScript to auto submit the form and then use the return parameter to go back to the listing page. This method gives you freedom over your delete link and stops you loading several instances of the SC form

    {if member_group == '1' OR member_group == '10' OR member_group == '12'}<a href="http://{path=includes/delete-entry}/{entry_id}">Delete</a>{/if}

    In your embed use {segment_3} for your entry_id
             

    Does that help?

  • #3 / Sep 14, 2011 10:48am

    Cartegraph

    83 posts

    simplistic and brilliant… love it. Thanks much!

  • #4 / Sep 14, 2011 11:30am

    Mark Bowen

    12637 posts

    Hi Luke,

    Just wanted to check to see if you’re all sorted now? Is it okay to close this thread out?

    Thanks,

    Mark

  • #5 / Sep 14, 2011 11:31am

    Cartegraph

    83 posts

    still haven’t gotten the autosubmit working yet, but my div breaking issue is solved.

  • #6 / Sep 14, 2011 12:02pm

    Mark Bowen

    12637 posts

    Hi Luke,

    Okay if you could start a separate thread for that issue (unless you already do have one) and we will take care of that issue there.

    Glad to see John got you sorted with this issue though.

    Please feel free to post a new thread as needed.

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases