To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.faqOpen lugnet.faq in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 FAQ / 254
253  |  255
Subject: 
Re: Linking between FAQ items (Was: [LDraw FAQ] Who wrote LDraw?)
Newsgroups: 
lugnet.faq
Date: 
Fri, 14 May 1999 16:21:55 GMT
Reply-To: 
JSPROAT@avoidspamGEOCITIES.COM
Viewed: 
1474 times
  
Sproaticus wrote:
We need to be able to solve this without using duplicate files.
Plus, this action would break if the FAQ were slurped into one big file.

Okay, I got it.

From my end, I can guarantee that all FAQ items (1) have unique file names.
This is the key thing, to be able to find a specific file by its name, in
any subdirectory.

So, to make a HREF to "#whatsitz" in file "flarn.en.html" (2), you could do
the anchor like this:

  <A HREF=".../flarn.en.html#whatsitz">another FAQ item</A>

The ".../" (3) preceeding the file name will be a token to the slurper
script to find the file and resolve the HREF to a proper address (whether in
the same file or in another file far, far away), and write the correct
address to the output text.

Cheers,
- jsproat

1.  Except possibly for some automatically-generated items, such as ng
charters; but even then, this isn't set in stone.

2.  Is it "flarn.en.html" or "flarn.html.en"?  (4)

3.  Or some other token; we just need to agree on it.

4.  If my browser says my language is "en-US", and the Apache server doesn't
have "goondog.en-US.html", will it pull "goondog.en.html"?

--
Jeremy H. Sproat <jsproat@geocities.com>
http://www.geocities.com/SiliconValley/Horizon/5249/
May the Force be with y'all.



Message has 2 Replies:
  Re: Linking between FAQ items (Was: [LDraw FAQ] Who wrote LDraw?)
 
Jeremy: (...) [...] (...) OK. Will you take care of keeping a list of used entry names? (...) Skip the ".en.html#whatsitz". * Fixed language codes (".en") will give us unneccessary problems when translating the FAQ. * Todd will generate the (...) (26 years ago, 14-May-99, to lugnet.faq)
  Re: Linking between FAQ items (Was: [LDraw FAQ] Who wrote LDraw?)
 
(...) If you make the filenames themselves unique, you'll end up in the long run encoding bastardized forms of the directory names into the filenames in order to keep the namespaces clean. No way to avoid that. :-( --Todd (26 years ago, 14-May-99, to lugnet.faq)

Message is in Reply To:
  Re: Linking between FAQ items (Was: [LDraw FAQ] Who wrote LDraw?)
 
(...) Ah...no. We need to be able to solve this without using duplicate files. Plus, this action would break if the FAQ were slurped into one big file. Urg. Cheers, - jsproat (26 years ago, 14-May-99, to lugnet.faq)

24 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR