Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Wally Kolcz #1
Text limiting
I have a dynamic field that tells the news that Coldfusion outputs on a
hompage. How can I limit the number of characters that news.News shows on
the page and just have it hyperlink to a full story.
<table width="100%">
<tr>
<td height="21"><div align="left">#news.Title# -<span
class="style1">#news.Date#</span></div></td>
</tr>
<tr>
<td height="17"><div align="left">
<p><a href="fullstory.cfm?id=#news.ID#">#news.News#</a></p>
</div></td>
</tr>
<tr>
<td height="17"> </td>
</tr>
</table>
Thanks
Wally Kolcz Guest
-
Limiting available CSS styles
We're testing Contribute as a possible solution for editing non-database-managed content for a ASP.NET 2.0 site that uses .NET Master Pages. We'd... -
Limiting connections to FMS
I was wondering if there is a notion of (to use a Java metaphor) "static" shared objects. That is objects/streams shared across FMS instances. ... -
Limiting Choises
I would like to develop a Web User Control where the user can type som text eg. e-mail, number or plain text. I would like a public property... -
limiting my query
i'm building a site that takes details of stories coming in. however, i've found that the page also includes stories of dates gone by. is there... -
Limiting Old Posts
From OE, when I am viewing the newsgroups with the "Show Replies to My Messages" option checked, there are old messages from a long time ago. How... -
The ScareCrow #2
Re: Text limiting
You can use the left function
Left(string, numberofcharacters)
Ken
The ScareCrow Guest
-
CyberShaman #3
Re: Text limiting
<CFOUTPUT query="yourQuery">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
#yourQuery.Product#<br>
<cfif len(Description) gt 50>
#Left(Description, 50)#...(<a
href="fullDesc.cfm?more=#yourQuery.ID#">more</a>)
<cfelse>
#yourQuery.Description#
</cfif>
</td>
</tr>
</table>
</cfoutput>
--
==============================
Rez Multi-Media Productions
[url]http://www.rez-productions.com[/url]
Wally Kolcz <wkolcz@comcast.net> wrote in message
news:d2csl9$l0k$1@forums.macromedia.com...> I have a dynamic field that tells the news that Coldfusion outputs on a
> hompage. How can I limit the number of characters that news.News shows on
> the page and just have it hyperlink to a full story.
>
> <table width="100%">
> <tr>
> <td height="21"><div align="left">#news.Title# -<span
> class="style1">#news.Date#</span></div></td>
> </tr>
> <tr>
> <td height="17"><div align="left">
> <p><a href="fullstory.cfm?id=#news.ID#">#news.News#</a></p>
> </div></td>
> </tr>
> <tr>
> <td height="17"> </td>
> </tr>
> </table>
>
> Thanks
>
>
CyberShaman Guest



Reply With Quote

