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.

Link to Edit Weblog from within Template

October 10, 2008 6:02pm

Subscribe [3]
  • #1 / Oct 10, 2008 6:02pm

    Joe Wolin

    206 posts

    Hello,

    I’m looking for an easy way to edit existing weblog articles by creating a link from the weblog (in the template) that will allow me to edit the weblog in the control panel.  The idea is to have the luxury of editing existing articles without having to wade through the control panel for the specific weblog.

    I know I’ve read a thread about this but can’t find it!

    thanks…

  • #2 / Oct 10, 2008 6:57pm

    Boyink!

    5011 posts

    Here’s what I use:

    {if member_group == "1"}
        <a href="http://pathtoyourcpindex.php?C=edit&M=edit_entry&weblog_id={embed:the_weblog}&entry_id={embed:the_entry}" title="Edit Entry" target="_blank" rel="noopener">Edit This</a>
        
    {/if}

    I embed this into it’s own template, then call it from any weblog entries loop:

    {embed="embeds/edit_this_link" the_weblog="{weblog_id}" the_entry="{entry_id}"}

    Just note that you have to edit the path to your own CP index file.

  • #3 / Oct 10, 2008 6:59pm

    Joe Wolin

    206 posts

    Excellent.  Just what I need…

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

ExpressionEngine News!

#eecms, #events, #releases