Loading ...
Sorry, an error occurred while loading the content.

20982Re: [Clip] Re: concatenating html files

Expand Messages
  • Mike Breiding - Morgantown WV
    Aug 23, 2010
      Mike Breiding - Morgantown WV wrote:

      > Hot dog! Beautiful!
      >
      > One question.
      > Does this line:
      > ^!InsertText **** Day ^%i% ****^p^%txt%^p^p
      > Insert the Page Title text?
      > The reason I ask is the title text is duplicated and I cannot see why.
      > Here is what I am getting for each page:
      >
      > **** Day 1 ****
      > <?php include("../title_mich_ca_index.php"); ?> DAY 1: Morgantown to
      > Fort Wayne - slow and scenic
      > Morgantown to Fort Wayne - slow and scenic
      >
      > **** Day 2 ****
      > <?php include("../title_mich_ca_index.php"); ?> Day 2: Fort Wayne to
      > Harrison Michigan: Wandering all over the place!
      > Day 2: Fort Wayne to Harrison Michigan: Wandering all over the place!
      >
      > Wait - I think I just answered my own question!
      > The Page Title and header have the same text beginning with "Day" so
      > maybe that is why it shows up twice?
      > It also showed me I omitted the "Day 1" in the header and I have looked
      > at that page dozens of times and missed that!
      > Thanks, -Mike


      Ooops!
      How could that be?
      "Day 1" is in the page title and there is no "Day 1" in the header.
      So, that cannot be the reason for the duplication.
      -Mike

      >
      >> ^!Menu File/New
      >> ;Specify folder containing d1 - d?? subfolders
      >> ^!Set %folder%="^?{(T=D)Directory==^%folder%}"
      >> ^!Set %i%=0
      >> :Loop
      >> ^!Inc %i%
      >> ^!Set %txt%=^$GetFileText(^%folder%d^%i%\index.php)$
      >> ^!IfEmpty ^%txt% Done
      >> ^!Set %txt%=^$StrStripHTML("^%txt%";0)$
      >> ^!InsertText **** Day ^%i% ****^p^%txt%^p^p
      >> ^!Goto Loop
      >> :Done
      >> ^!ClearVariable %folder%
      >> ^!ClearVariable %i%
      >> ^!ClearVariable %txt%
      >>
      >>
      >
      >
      > ------------------------------------
      >
      > Fookes Software: http://www.fookes.com/
      > NoteTab website: http://www.notetab.com/
      > NoteTab Discussion Lists: http://www.notetab.com/groups.php
      >
      > ***
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
    • Show all 16 messages in this topic