Gel -
I can certainly appreciate your desire to make content entry easy while
still employing page "breaks" for better user experience.
Here's just a quick idea:
+Decide your desired page length in characters.
+When building your first page, do a FindNoCase() for a hard return
(chr13chr10) on your review text starting at a point a little before your
desired length. You could also look for 2 hard returns in a row which
would signify a paragraph break -- depends on your content
+Display all the review text from character 1 to your break point on the
first page
+Pass your break point through to page 2 to serve as your start point and
perform the break point location routine again to find the end of page 2
+Continue this process until the review text has all been displayed
As I consider this method, however, it occurs to me that it will be
difficult to determine page counts on page one and harder still to create
links to a particular page so you can jump directly to Page 3, for example.
You might be better served by performing this "page breaking" routine
during content creation and then actually storing the pages as records in a
table. That would create "hard" pages for the reader while maintaining the
author/editor's ability to enter the full text.
Hope this helps,
Kevin
--------------------------
Kevin Marshall
Certified ColdFusion Developer
eCalton.com, Inc.
Vero Beach, FL
www.ecalton.com
[EMAIL PROTECTED]
561.569.4500
Ang�l Stewart
<astewart@ema To: CF-Community
<[EMAIL PROTECTED]>
il.com> cc:
Subject: FW: Help needed putting logic
behind a content driven site.
12/21/00
09:04 AM
Please
respond to
cf-community
Welll..
The problem I'm running into now is that ok:
I make a table called Review.
With ID, Title,URL,Author,Date,Genre....and finally TEXT (a memo field
since
I'm using MSAccess).
Now what I want, is for someone to click say Reviews>First Person
Shooters>Quake Team Arena..
and WHAMMO BLAMMO!
CF does a Query and with the nimble use of <CFOUTPUT> I splash the text
onto
the screen...
The problem is that I myself, write rather detailed reviews..that can
easily
extend to three or four pages (In Word).
If I just use a <CFOUTPUT> to display the text (Perhaps putting HTML code
in
there too..I'm not sure) then this thing will scroll down for ages.
How the heck do I split the outputted text onto more than one page, linked
by a Previous/Next button, or better yet a simple text Nav for the Review
Page: <1,2,3,4>??
Remember,the Text is all going to be in one big field. If I had to manually
decide where a split should occurr and use three or four text fields or
'pages' then I might as well format HTML.
Understand, what I'm trying to get away from here is having to manually use
HTML to fix up each Document, and then post 4 seperate pages manually to
the
site.
I want one of our reviewers to be able to open a web browser, fill in the
fields above (after the review has been approved) and Paste the text of the
review in..click Submit and
PRESTO!
It's there.(I have this part covered ;-) )
I'm at a loss at the moment as to how I can achieve that, break up the text
in 'pages' so to speak, with CF.
I've sorted out how I'm gonna be laying out the site etc.
It seems I just had "Analysis" block yesterday afternoon ;-P
Does anyone think I should move this over to CF-Talk at this point??
:-\
-Gel
www.carigamer.com
Island Gaming At It's Best.
Powered By Cold Fusion
hee hee hee ;-P
-----Original Message-----
From: Adam Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 21 December 2000 06:06
To: CF-Community
Subject: RE: Help needed putting logic behind a content driven site.
Ok...I give in.
Currently in final testing for one site. I'm also plugging it into another
site. I want to improve the section management. Currently you have to
handcrank the database entries to identify sections correctly. Adding a
front end to this would make it reasonably perfect.
Adam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists