Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Version 1.x
:
long description
Previous Thread
Next Thread
Print Thread
View Threaded
May 24, 2000, 10:44 AM
manureva
Novice
(5 posts)
May 24, 2000, 10:44 AM
Post #1 of 4
Views: 1680
Shortcut
long description
i have long description in my link. i used detailed pages to display them. When the description is displayed in a subcategory, I would like to limit the display to 50 or 100 first caracters. How can i do this?
bye
manu
May 24, 2000, 1:28 PM
pugdog
Veteran
/ Moderator
(6956 posts)
May 24, 2000, 1:28 PM
Post #2 of 4
Views: 1633
Shortcut
Re: long description
In reply to
You'd need to alter the $Long_Description field such as:
$cat_r->{'Description_50_char'} = substr ($Long_Description, 0, 50);
You'd want to put this before calling subcategory.html in
sub site_html_print_cat
And you'd be able to use the <Þscription_50_char%> tag to have the short description.
May 24, 2000, 1:29 PM
pugdog
Veteran
/ Moderator
(6956 posts)
May 24, 2000, 1:29 PM
Post #3 of 4
Views: 1627
Shortcut
Re: long description
In reply to
The _BEST_ way, though, is to make a new field in the Category table, for "Long_Desc" and "Short_Desc".
That way, you have control over what is used in the Short_Desc, rather than just the first xx characters.
When adding a new category, it takes almost no extra time.
May 24, 2000, 2:09 PM
manureva
Novice
(5 posts)
May 24, 2000, 2:09 PM
Post #4 of 4
Views: 1618
Shortcut
Re: long description
In reply to
thank you pugdog!
Previous Thread
Next Thread
Print Thread
View Threaded