NetTalk Central

Author Topic: html text limit in the body of the Index Page  (Read 2424 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • Email
html text limit in the body of the Index Page
« on: January 07, 2020, 01:23:43 AM »
Hello,
There appears to be a limit as to the amount of text displayed in the html in the body of the Index page...or is it the number of permitted lines of text ?
Can this be increased by settings?

Thanks
Richard
NT 11.28

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: html text limit in the body of the Index Page
« Reply #1 on: January 07, 2020, 02:23:24 AM »
There's no limit per se.  How are you displaying the text?
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Richard I

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • Email
Re: html text limit in the body of the Index Page
« Reply #2 on: January 07, 2020, 11:45:49 AM »
Hi Don,
Im just typing it into the template on the Index page...
deleting the CLW and the OBJ and then compiling...
The maximum I can get to display  is that currently displaying at https://sria.timepeace.co.nz:8191
Further lines of text are seemingly ignored.

For changes to take effect, I must delete the clw and obj first
Why I have to delete the CLW and OBJ before compiling is another mystery

Regards,
Richard

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: html text limit in the body of the Index Page
« Reply #3 on: January 08, 2020, 02:04:05 AM »
Ah.  You're probably entering the text into the text control under the xHTML tab.  Correct?

That text control has a finite amount of characters that can be entered.

Options:

1.  Create multiple "routines" under the xHTML tab.  Perhaps one paragraph per routine.

2.  Create a routine under the xHTML tab but leave the text control blank.  Go into the source code and find the template created Routine.  Use StringTheory to Load a text file, then display the text file with packet.Append(st.GetValue()).  Or you could literally hand code the text.

3.  Use a NetTalk file Tag, like <!-- Net:f:sometext.txt --> making sure the text file is in your Web folder.  Tag goes into the text control under the xHTML tab.

4.  Use NetWebSource procedures and include the NetWebSource procedure(s) under your Index page's xHtml tab.  You can use similar techniques as described about to use the NetWebSource procedures.

I'm sure there's more.

I think the Tag option, <!-- Net:f:filename --> is probably the best option in your situation.

I don't know why you're having to delete those files. 

Don

« Last Edit: January 08, 2020, 02:15:59 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Richard I

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • Email
Re: html text limit in the body of the Index Page
« Reply #4 on: January 08, 2020, 11:53:41 AM »
Thanks again Don, Much obliged
Richard