artoo
|
| Posted: 04/04/2002, 11:06 PM |
|
I want to modify the code used in the Portal example so that by clicking (or toggling) on a button (or URL), the displayed articles will show only the first few sentences. By clicking on it again, it will show the full article description.
What is the best way of going about it (preferred method is PHP4)?
Thanks
|
|
|
 |
Nicole
|
| Posted: 04/05/2002, 12:59 AM |
|
Artoo,
I think you can display first sentences or words of article by making a copy of defined number of starting characters from article text. Use additional field on the form for this. Add field with full article on the form and e.g. url link "Show All". Hide whole article fields by assigning empty string to the field. While user clicks on url pass any parameter like &show=all, catch parameter value in Before Show event and depending on its value hide one of the fields.
|
|
|
 |
artoo
|
| Posted: 04/06/2002, 6:09 PM |
|
Thanks Nicole. Your tips pointed me in the right direction.
|
|
|
 |
|