Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Edit links directly from Detailed pages.

Quote Reply
Edit links directly from Detailed pages.
Here's a good tip which will allow you to edit your listings directly from the detailed pages, rather than having to search for them in the browser.

  • First create a global to display category numbers in Detailed pages (thank to Andy for this from another thread):

    Tag:
    Code:
    get_cat_id


    Global:
    Code:
    sub {
    return $DB->table('CatLinks')->select ( ['CategoryID'], { LinkID => $_[0] } )->fetchrow;
    }

  • Next add the following anywhere you like in Build > User Templates > detailed.html:

    Code:
    <a href="<%config.db_cgi_url%>/browser.cgi?action=link_modify_form&category_id=<%get_cat_id($ID)%>&link_id=<%ID%>" target="_blank">[Edit This Link]</a>

  • Now go to Database and in the Editor box select Users / Modify and click Go.

  • Put your username in the in the Username field and click Search.

  • In the results box change your status from Registered to Administrator.

  • Now go to Browse and expand Home. Click on the first category listed. When you list appears click Editors in the top box.

  • Add yourself as an editor here and click Add Editor.

That's it. Now when you are logged in and you view a detailed page you will be able to click on [Edit This Link] and it will open the database details for that link.

Last edited by:

MJB: Feb 13, 2011, 5:31 AM
Subject Author Views Date
Thread Edit links directly from Detailed pages. MJB 6206 Feb 13, 2011, 5:29 AM
Thread Re: [MJB] Edit links directly from Detailed pages.
Andy 5993 Feb 13, 2011, 9:45 AM
Thread Re: [Andy] Edit links directly from Detailed pages.
MJB 5979 Feb 13, 2011, 9:49 AM
Thread Re: [MJB] Edit links directly from Detailed pages.
Andy 5983 Feb 13, 2011, 9:50 AM
Thread Re: [Andy] Edit links directly from Detailed pages.
MJB 5986 Feb 13, 2011, 10:18 AM
Thread Re: [MJB] Edit links directly from Detailed pages.
MJB 5989 Feb 13, 2011, 10:26 AM
Post Re: [MJB] Edit links directly from Detailed pages.
Andy 5986 Feb 13, 2011, 10:34 AM