CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 article in portal

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.