Apologies if I've asked this before.
My web provider only allows 9999 files in a folder but I have ~16,000 people to upload.
Using the web creation tool in FH puts the files in one folder and Gedmills doubles the number of files (I like the little trees!).
My solution is to split my file 5 ways (grandparents plus one large family) and provide links on the front page.
Am I missing something? How do others with large files publish?
Also I'm toying with buying TNG and upgrading to mysql - will I have the same problem or is the directory structure of TNS different?
thanks in advance
Chris
ID:4985
* Web Publishing - Files In Folder
- Jane
- Site Admin
- Posts: 8442
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Web Publishing - Files In Folder
The advantage with TNG is it builds the files on the fly from the database and there the number of files does not increase by the number of people in the file.
If you are handy using search and replace you could simply split the individual files into subdirectories and adjust the links on the files using a text search and replace.
So for example
IND0001 would move to folder IND0
FAM0 would move to folder FAM0
etc
then simply replace the links on the moved pages to something so ind0 becomes ../ind0/ind0
etc
and for the index and similar pages still on the root just replace
ind0 with /ind0/ind0
If you are handy using search and replace you could simply split the individual files into subdirectories and adjust the links on the files using a text search and replace.
So for example
IND0001 would move to folder IND0
FAM0 would move to folder FAM0
etc
then simply replace the links on the moved pages to something so ind0 becomes ../ind0/ind0
etc
and for the index and similar pages still on the root just replace
ind0 with /ind0/ind0
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Web Publishing - Files In Folder
May I refine Jane's excellent idea a little.
Firstly, the HTML Individual filenames do not have a fixed length with the Record Id padded with leading zeros.
They actually look like this:
ind1.html
ind2.html
ind3.html
...
ind10.html
ind11.html
...
ind111.html
ind112.html
So with very large numbers of individuals, if you only split on the first digit you would get up to 11111 in each of 10 folders.
e.g
ind1
ind10 - 19
ind100 - 199
ind1000 - 1999
ind10000 - 19999
So it would be better to split on first 2 digits and leave ind1 - ind9 in the root folder.
Also, don't forget about all the img... files.
Use PSPad to perform the bulk batch edits.
Firstly, the HTML Individual filenames do not have a fixed length with the Record Id padded with leading zeros.
They actually look like this:
ind1.html
ind2.html
ind3.html
...
ind10.html
ind11.html
...
ind111.html
ind112.html
So with very large numbers of individuals, if you only split on the first digit you would get up to 11111 in each of 10 folders.
e.g
ind1
ind10 - 19
ind100 - 199
ind1000 - 1999
ind10000 - 19999
So it would be better to split on first 2 digits and leave ind1 - ind9 in the root folder.
Also, don't forget about all the img... files.
Use PSPad to perform the bulk batch edits.
Web Publishing - Files In Folder
Ok, thanks.
I'll try that next time I get to upload.
Chris
I'll try that next time I get to upload.
Chris