emacs-wiki-discuss
[Top][All Lists]
Advanced

[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


From: Nicolas Charpentier
Subject: [emacs-wiki-discuss] Re: a emacs-wiki but no planner.el question (was:How is hierarchy supposed to work?)
Date: Mon, 26 Jul 2004 10:27:57 +0200

Hi,

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?
> 
> Are
> 
>    Wiki/FileName
>    Wiki/DirName/FileName
>    Wiki/SubDir/FileName
>    Wiki/TestDir/FileName
> 
> 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
different directories.
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:
<wiki>
Wiki/Home
Wiki/Page1
Wiki/SubDir/Page2
</wiki>

<published files>
WebWiki/Home.html
WebWiki/Page1.html
WebWiki/WikiIndex.html
WebWiki/SubDir/Page2.html
</published files>


The WikiIndex file was something like that:
<li><a href="Home.html">Home</a>
</li>
<li><a href="Page1.html">Page1</a>
</li>
<li><a href="Page2html">Page2</a>  <!-- ************** wrong link ************
-->
</li>

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.

Regards,

Nicolas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]