[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: a emacs-wiki but no planner.el question (was:Ho
[emacs-wiki-discuss] Re: a emacs-wiki but no planner.el question (was:How is hierarchy supposed to work?)
Mon, 26 Jul 2004 10:27:57 +0200
I'm CC the mailing list now after my first private answer :-( .
Gregor Zattler a écrit :
> Hi Nicolas,
> thanx for your idea:
> * Nicolas Charpentier <address@hidden> [20. Jul. 2004]:
> > Gregor Zattler a écrit :
> > >
> > > Hi emacs-wiki-users,
> > > * TC <address@hidden> [29. Jun. 2004]:
> > > > If I have a subdirectory - call it "subdir" - in my emacs-wiki
> > > <....>
> > > I'm not able to fix this. Any workarounds?
> > Hi,
> > I'm not sure of your problem but I also have some difficulties with
> > subdirectory.
> > To make all things to work, I have change the function
> > "emacs-wiki-published-file".
> > ---
> > (defsubst emacs-wiki-published-file (&optional file)
> > "Return the filename of the published file. Since this is based on
> > the published-name, it will be filtered through
> > `emacs-wiki-publishing-transforms'"
> > (expand-file-name
> > (emacs-wiki-published-name (emacs-wiki-page-name file))
> > emacs-wiki-publishing-directory
> > ))
> > ---
> > With my modification, the published files are generated in the same
> > directory (lost of the
> > hierarchy).
> I gave your function a try but nothing seems to happen.
> But i do not understand the concept:
> How can the Wiki files link to Subdirs while the html links link
> without hierarchy? The there are different namespaces?
> all the same?
> > To link to an WikiPage, just use its WikiName (not [[sub/SubFile][SubFile]]
> > but only
> > SubFile).
> To which Wiki file in the above example would FileName link?
Well, I had the same problem. First at all the most important thing to know is
that (for the moment ??) a WikiName must be unique in a project. Sub-directory
support is quite young and don't know (yet ) how to handle the same WikiName in
With the last distribution I get (quite old now), when WikeFiles were in sub
directories the publishing wasn't correct but links during edition in emacs
worked. The problem with the publishing was that files was generated in several
directories but html links was made only at the "top level directory". Due to my
poor english, this is a example:
The WikiIndex file was something like that:
<li><a href="Page2html">Page2</a> <!-- ************** wrong link ************
All link refering to a file in a sub directory was wrong.
To correct my problem, I choose to put all the html files in the top level
directory (As a WikiName is unique it's not a problem).
Hope that my explanations help you.