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.

Edit this item link

March 10, 2010 1:15pm

Subscribe [3]
  • #1 / Mar 10, 2010 1:15pm

    domdedom

    5 posts

    Hi there, I’m trying to display an “edit this” link at the bottom of my content items. The method that worked for 1.5 was:

    {if logged_in_member_id == member_id}
      <a href="/admin.php?C=edit&M=edit_entry&weblog_id={weblog_id}&entry_id={entry_id}">Edit this</a>
    {/if}

    but the url form appears to have changed significantly in EE2. Is there a recommended way to generate the url? I can’t find anything recent on Google or in the docs.

    Thanks in advance

  • #2 / Mar 10, 2010 4:23pm

    Ingo Wedler

    63 posts

    From the Agile theme:

    {if author_id == logged_in_member_id OR logged_in_group_id == "1"}• <a href="http://{cp_url}?S=0&D=cp&C=content_publish&M=entry_form&channel_id={channel_id}&entry_id={entry_id}">Edit This</a>{/if}

    Hope this helps,

    MacDeath

  • #3 / Mar 10, 2010 4:26pm

    Ingmar

    29245 posts

    Thanks for the assist, MacDeath. Let me move this thread to Howto, domdedom… I trust this is helpful?

  • #4 / Mar 10, 2010 7:06pm

    domdedom

    5 posts

    Thanks MacDeath, that helps a lot. I wanted to ask about themes, there appears to be a themes directory in the root folder. Does Expression engine support some type of themeing, how are themes different to templates, and what would I do with a theme if I installed one? Seems like templates do pretty much everything in EE.

    Thanks, Nic

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

ExpressionEngine News!

#eecms, #events, #releases