Use the IncludeFile[] macro :)


At 12:13 PM 10/25/2002 -0700, you wrote:
Send Moin-user mailing list submissions to
        moin-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/moin-user
or, via email, send a message with subject or body 'help' to
        moin-user-request@lists.sourceforge.net

You can reach the person managing the list at
        moin-user-admin@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moin-user digest..."


Today's Topics:

   1. Re: URL Referencing with Spaces in File Strings (Brian Dorsey)

--__--__--

Message: 1
Date: Thu, 24 Oct 2002 17:08:17 -0700
From: Brian Dorsey <brian@dorseys.org>
To: "'moin-user@lists.sourceforge.net'" <moin-user@lists.sourceforge.net>
Subject: Re: [Moin-user] URL Referencing with Spaces in File Strings

Here is what I ended up doing to link to files with spaces on remote NT
servers:

[file://servername/toolsanddocs/docs/Build%20Functional%20Requirements.doc
Build Functional Requirements]

This ends up turning into a nice link with a little floppy next to it.

Take care,
-Brian

On Thu, Oct 24, 2002 at 12:51:03PM -0400, Yandle, Hans wrote:
> I have come to a bit of a problem. I am trying to setup a wiki page but have
> attachments stored on an external NT file server. NTFS supports long
> filenames and spaces with in them. So for instance, one might have the
> following:
>
> Server Name: abcserver
> Share Name: attachments
> UNC: \\abcserver\attachments
>
> Under the attachments root folder, one might have:
> /Company Logos
>   My Logo.png
>   Logo2.png
>
> Please note the space in the directory name ("Company Logos") and file name
> ("My Logo.png"). The following wiki statements work:
>
> *     Opens a new window, supports spaces in directories and filenames:
> [[NewWindow("file://abcserver/attachments/Company Logos/My Logo.png"[, "My
> Company Logo"])]]
> *     Here is the same image being displayed as an inline image. I
> converted the spaces to HTML encodings, i.e. <pre>asc(32)=html(&#32;):
> file://abcserver/attachments/Company&#32;Logos/My&#32;Logo.png </pre>
> *     Here is a html reference for the logo using pure html code:
> <pre>[[HTML(<a href="file://abcserver/attachments/Company Logos/My
> Logo.png">My Company Logo</a>)]]</pre>
>
> I tried using the url[] command but every time it encounter a space the url
> command broke off the remainder/tail as its description. In other words this
> does not work:
> *     url["file://abcserver/attachments/Company Logos/My Logo.png" My
> Company Logo]
>
> It seems logical enough to me that if one encloses their file string within
> quotes that file string should be pass quoted and as is to the "a hrefs" or
> "image" tags.
>
> Can someone tell me how to workaround this issue or possible fix it. I
> understand the conversion of spaces to html encoding but my users will not.
>
> Regards,
>
> Hans
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
> _______________________________________________
> Moin-user mailing list
> Moin-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user



--__--__--

_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


End of Moin-user Digest

-- Charles Bevali
   +1 480 375 6114
   GIS Director
   Technical Systems Architecture
   DHL Worldwide Express

   IMPORTANT: Please use cbevali@systems.dhl.com not Charles.Bevali@systems.dhl.com