Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Editors editing links directly from site

Quote Reply
Editors editing links directly from site
Hello,

Pardon me if this has been answered, I searched and could not figure it out.

If you have an editor that can modify or delete links in a category, is it possible to add tags to the links.html to allow them to directly edit the link from the page?

For example in links.html


<%if Username%><br><br>
<a class="menu_links" href="<%db_cgi_url%>/add.cgi?&link_id=<%ID%>=<%category_id%>">ADD A LINK</a> &#149;
<a class="menu_links" href="<%db_cgi_url%>/modify.cgi?&link_id=<%ID%>=<%category_id%>">MODIFY A LINK</a> &#149;
<%endif%>

The above code does not work btw, it's just an example of what I'm trying to do.

I have tried many varations on this and still cannot get it to work.

The options appear in the link list if you are logged in, but the <%category_id%> appears as an unknown tag...

I wanted my editor, who has permission to add, modify or delete to be able to do so from the site instead of the editor browser. I think this would dramatically speed up editing.

Any suggestions?
Quote Reply
Re: [palehorse1677] Editors editing links directly from site In reply to
You could do something like:
Code:
<%if category_id and Links::Utils::is_editor%>
<a href="browser.cgi?action=link_modify_form;category_id=<%category_id%>;link_id=<%ID%>">edit</a>
<%endif%>

Adrian
Quote Reply
Re: [brewt] Editors editing links directly from site In reply to
just tried it I get the error Invalid category: Unknown Tag: 'category_id"

Seems it won't pass <%category_id%> when it's on links.html in passes the link ID ok though