Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-07 Thread Stephan Beal
On Wed, Apr 7, 2010 at 1:10 PM, Joshua Paine wrote: > On 04/07/2010 06:55 AM, Stephan Beal wrote: > > A link in the form > href='/repos'>... resolves (incorrectly) to: > > > > > http://fossil.wanderinghorse.net/repos/JSONMessage/index.cgi/%27/repos%27 > > In HTML, attributes may be quoted with s

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-07 Thread Joshua Paine
On 04/07/2010 06:55 AM, Stephan Beal wrote: > A link in the form href='/repos'>... resolves (incorrectly) to: > > http://fossil.wanderinghorse.net/repos/JSONMessage/index.cgi/%27/repos%27 In HTML, attributes may be quoted with single quotes or double quotes, but most people and software use doub

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-07 Thread Stephan Beal
On Wed, Apr 7, 2010 at 12:37 PM, Stephan Beal wrote: > Yup. See: > > > http://fossil.wanderinghorse.net/repos/JSONMessage/index.cgi/wiki?name=Sandbox > > i've put a link in the form [/repos] there and it resolves to: > > http://fossil.wanderinghorse.net/repos/JSONMessage/index.cgi/repos > Sorry,

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-07 Thread Joshua Paine
On 04/07/2010 06:37 AM, Stephan Beal wrote: > i've put a link in the form [/repos] there and it resolves to: > > http://fossil.wanderinghorse.net/repos/JSONMessage/index.cgi/repos Sure... but if you just write the link in HTML (which fossil wiki allows and allows to be mixed with wiki) instead of

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-07 Thread Stephan Beal
On Wed, Apr 7, 2010 at 12:27 PM, Joshua Paine wrote: > browser, fossil has converted your link to href="/Project/index.cgi/foo">Foo ? Are you sure? I can't reproduce > that at all--for me fossil isn't messing with my hand-written links. > Yup. See: http://fossil.wanderinghorse.net/repos/JSONMe

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-07 Thread Joshua Paine
On 04/07/2010 02:16 AM, Stephan Beal wrote: > i tried that, but in CGI mode my index.cgi _is_ my root dir (as far as > Fossil CGI is concerned). Wait... so if on a fossil wiki page, you type Foo (the leading slash being essential), when you view that page in the browser, fossil has converted you

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Stephan Beal
On Wed, Apr 7, 2010 at 1:04 AM, Joshua Paine wrote: > You do not have to hard-code the server name so long as its the same as > the fossil repo is being served through. Just linking to "/foo/bar" > means "http://whatever-domain-we-are-on-now.com/foo/bar";. It's the / at > the beginning that does

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Joshua Paine
On 04/06/2010 06:10 PM, Stephan Beal wrote: > THAT i didn't think of: i could move the demo path outside of the CGI's > path while still keeping it in the webroot. That would almost solve my > problem, except that i still have to (a) hard-code the server name in > the Wiki link and You do not have

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Stephan Beal
On Wed, Apr 7, 2010 at 12:06 AM, Joshua Paine wrote: > the PHP correctly. If were the right path, and it were working, you'd just write your link > like My Demo. > THAT i didn't think of: i could move the demo path outside of the CGI's path while

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Stephan Beal
On Tue, Apr 6, 2010 at 11:36 PM, Rene de Zwart wrote: > Its is a bit odd to run 2 http servers (well maybe not that odd) > Fossil's running on my remote box as a CGI. On my local box apache serves 5 or 6 sites and fossil (on 8080) runs in ui mode quite often. > use a link or a path to get de

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Joshua Paine
So, you need to link to a PHP file which will be run by Apache under the same domain and port as your wiki pages, right? If that's correct, this shouldn't be too hard. The first thing is to make sure you've got Apache configured to serve the PHP correctly. If

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Rene de Zwart
Op Di, 6 april, 2010 23:03, schreef Stephan Beal: > On Tue, Apr 6, 2010 at 9:10 PM, verizon wrote: > >> From advice I got previously here is how I can access a PDF that is in >> the >> repository with a relative link (works both locally and in a server) >> >> [http:doc/tip/Ethernet/DOCS/npincompl

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Stephan Beal
On Tue, Apr 6, 2010 at 9:10 PM, verizon wrote: > From advice I got previously here is how I can access a PDF that is in the > repository with a relative link (works both locally and in a server) > > [http:doc/tip/Ethernet/DOCS/npincomplete.pdf | Code Description (pdf) ] > That won't work in this

Re: [fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread verizon
Hi, From advice I got previously here is how I can access a PDF that is in the repository with a relative link (works both locally and in a server) [http:doc/tip/Ethernet/DOCS/npincomplete.pdf | Code Description (pdf) ] Your link should work similarly. The file is in /

[fossil-users] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Stephan Beal
Hi, all! i'm developing a JavaScript RPC toolkit which i am of course hosting in Fossil: http://fossil.wanderinghorse.net/repos/JSONMessage/ that's all fine and good, but then i wanted to add a demo page. That entailed adding a subdir under my project and leading the user there, of course. But