INCLURE

Hi all,

I need to include a file that is not in the spip folder, it is in another one.
Normally I would put: <include /folder/file.html> , but that doesn’t work.

How can I use the so I can include files that aren’t in the spip directory?

Thanks,
Regards

I need to include a file that is not in the spip folder, it is in another
one.
Normally I would put: <include /folder/file.html> , but that doesn't work.

<INCLUDE(folder/file.html)> should work.

-- Fil

It didn’t work.

The files that I want to include are in a folder that is in the root site. For example I have:

RootSite
|
|__inlcude
| |__file1.html
| |__file2.html
| |__file3.html
|
|__spip
|__ecrire
|__squelettes-dist
|spip.php
|
,etc

I have an .html inside the spip folder (squelettes-dist to be exact), but I need to include a file that is in the folder include.

Thanks!

On Mon, Nov 16, 2009 at 6:33 AM, Fil <fil@rezo.net> wrote:

I need to include a file that is not in the spip folder, it is in another
one.
Normally I would put: <include /folder/file.html> , but that doesn’t work.

<INCLUDE(folder/file.html)> should work.

– Fil

Use ../ to go "up" a folder :

    <INCLUDE(../include/file1.html)>

-- Fil

I’ve tried with: <INCLUDE(…/include/file1.html)> and <INCLUDE(include/file.html)> but neither worked.
It’s strange.

Noelia

On Tue, Nov 17, 2009 at 5:56 AM, Fil <fil@rezo.net> wrote:

Use …/ to go « up » a folder :

<INCLUDE(…/include/file1.html)>

– Fil

Noelia Yavel a écrit :

I've tried with: <INCLUDE(../include/file1.html)> and
<INCLUDE(include/file.html)> but neither worked.
It's strange.

maybe two steps :
   <INCLUDE(../../include/file1.html)>

(depends from where your include is called)

Well, I’ve tried with <INCLURE{fond=…/includes/file1}> and it worked!

Thanks!,
Regards

On Tue, Nov 17, 2009 at 10:36 PM, Noelia Yavel <dax125@gmail.com> wrote:

I’ve tried with: <INCLUDE(…/include/file1.html)> and <INCLUDE(include/file.html)> but neither worked.
It’s strange.

Noelia

On Tue, Nov 17, 2009 at 5:56 AM, Fil <fil@rezo.net> wrote:

Use …/ to go « up » a folder :

<INCLUDE(…/include/file1.html)>

– Fil