Gossamer Forum
Home : Products : Links 2.0 : Customization :

Adapting Descrition field

Quote Reply
Adapting Descrition field
How can I adapt the description field so that it can hold more dta- say 300-500 words?

Thankyou

Quote Reply
Re: Adapting Descrition field In reply to
Use the search feature to search for field definitions

here's a post to view ( notice item # 4 )

http://www.gossamer-threads.com/...250&Old=allposts

Gene
Quote Reply
Re: Adapting Descrition field In reply to
OK I founf that alreadybut wasntsure ifI needed to do anything else.

Thanks

where can I find the codeor html to change the appearance of the formin the add/ modify admin pages.

Say for example I change the input type of a field- say the title to a 1000 characterfield ,how can I get to display correectly, or does the script detect this automatically-


Also can I change a field to a binary field so I coulddisplay a picture within my description?

Thanks in advance

Quote Reply
Re: Adapting Descrition field In reply to
In Reply To:
where can I find the code or html to change the appearance of the form in the add/ modify admin pages.
I only use the templates. If you are using templates, you can edit the html pages in the templates folder....add.html, link.html, modify.html, etc. using a text editor.

If you are not using templates, then I believe you select the Edit Templates menu option in the Build section of the Links control panel. Or I guess you could edit the site_html.pl file directly. Someone who knows more about this may have a better recommendation for you.

Find $build_use_templates in links.cfg. Set to = 1 to use templates.

In Reply To:
I change the input type of a field- say the title to a 1000 character field
That is probably way too large for a title. The title is just a brief description of your link. In general keep it around 75, + or - 25.
In Reply To:
how can I get to display correctly, or does the script detect this automatically
Nothing is automatic. You control it thru the HTML.

In Reply To:
can I change a field to a binary field so I could display a picture within my description
Well, you may not be able to put the binary in the description but it can be part of the page. In the Resources section there is a MOD called Priority Logo Links and Regular Logo Links. You can ignore the priority section if you want to.

Here is an example. I did not need the gWeidth and gHeight since I set the image file ( binary ) to be the same size for all.
Code:
<%if Graphic%>
<%if URL%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="New"
onMouseOver="window.status=' Click here to visit this link; return true"
onMouseOut="window.status=' '"><img src="<%Graphic%>" width="90" height="120"
alt="<%Title%>" border="0"></a>
<%endif%>
<%ifnot URL%>
<img src="<%Graphic%>" width="90" height="120" alt="<%Title%>" border="0">
<%endif%>
<%endif%>
You need the enhanced template MOD for the above.
Gene
Quote Reply
Re: Adapting Descrition field In reply to
The fields are created dynamicly in admin view. You should only have to edit your add/modify templates.

If you were using say, SQL, then yes, you could save binary data in your database; it would not be very practical or efficient to do so in a flatfile system. It would be better to use the file upload mod and only store the url of the image in a field.

--Drew
Quote Reply
Re: Adapting Descrition field In reply to
You don't need to touch the code that produces the admin pages - it is done automatically.

There is no such thing as a binary field, I assume you mean file field to upload an image with a resource? - Yes this is possible - search the Links2 Customization forum for upload.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: Adapting Descrition field In reply to
lol what are the chances of that - all three of us replied at the same time!

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: Adapting Descrition field In reply to
Thanks all