Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Edit Link Info

Quote Reply
Edit Link Info
Hello,

I just recently started having users on my site, allowing them to edit their info.
But when they want to change the link info its totally blank and they have to rewrite it again.
I thought it was something I had done wrong, but I see in the templetes that it actually says that they have to write it all, not just the changes.
Could this be really like that?
Has anyone "fixed" or been able to get around this? And how....

Thanks

Juan Carlos
Quote Reply
Re: [Gorospe] Edit Link Info In reply to
Hi,

I'm guessing you are on about modify.cgi?

If so, make sure in include_form.html, you have stuff like:

Code:
<%if Title%>value="<%Title%>"<%endif%>
Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Edit Link Info In reply to
Populate each value with its actual field value will do the trick? Havent tried it yet,but seems easy enough..

Didnt think of that.
Thanks andy
Quote Reply
Re: [Gorospe] Edit Link Info In reply to
Hi,

Exactly - check out the standard include_form.html:

Code:
<div class="row required clear">
<label for="Title" class="name">Title: <span>*</span></label>
<div class="value">
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
</div>
</div>
<div class="row required clear">
<label for="URL" class="name">URL: <span>*</span></label>
<div class="value">
<input type="text" id="URL" name="URL" value="<%if URL%><%escape_html URL%><%else%>http://<%endif%>" class="text" />
</div>
</div>
<div class="row<%unless category_loop_selected%> required<%endunless%> clear">
<label for="CatLinks.CategoryID" class="name">Category:<%unless category_loop_selected%> <span>*</span><%endunless%></label>
<div class="value<%if category_loop_selected%> wrappedtext<%endif%>">
<%if category_loop_selected%>
<%if category_loop.length > 1%>
<ul><%loop category_loop%><li><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /></li><%endloop%></ul>
<%else%>
<%loop category_loop%><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /><%endloop%>
<%endif%>
<%else%>
<select id="CatLinks.CategoryID" name="CatLinks.CategoryID">
<%loop category_loop%>
<option value="<%escape_html ID%>"<%if selected%> selected="selected"<%endif%>><%'&nbsp;&nbsp;' x $CatDepth%><%Name%></option>
<%endloop%>
</select>
<%endif%>
</div>
</div>
<div class="row clear">
<label for="Description" class="name">Description:</label>
<div class="value">
<textarea id="Description" name="Description" rows="3" cols="42"><%if Description%><%escape_html Description%><%endif%></textarea>
</div>
</div>
<div class="row clear">
<label for="Contact_Name" class="name">Contact Name:</label>
<div class="value">
<input type="text" id="Contact_Name" name="Contact_Name" value="<%if Contact_Name%><%escape_html Contact_Name%><%endif%>" class="text" />
</div>
</div>
<div class="row clear">
<label for="Contact_Email" class="name">Contact E-mail:</label>
<div class="value">
<input type="text" id="Contact_Email" name="Contact_Email" value="<%if Contact_Email%><%escape_html Contact_Email%><%endif%>" class="text" />
</div>
</div>

(the bits in bold)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!