Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

SSI in MOSS

  Asked By: Rolando    Date: Nov 20    Category: MOSS    Views: 662

> You can't use a server side include from the file system because the
> server is pulling everything from virtual directories in the database.
> It won't recognize a physical server path you create. You could try
> putting it out in a directory under the Template/Layouts directory of
> the 12 hive. That can be referenced using a relative address of
> _Layouts/custom/ at runtime.


I misread that comment before. OK, so, no files can be included via the
files system.

So, I tried as you suggested and put the file in the 12-hive. However, I
get the same error as when I try to include the file in a site list:

- - - - -
An error occurred during the processing of
/_catalogs/masterpage/mvpnew.master. The include file
'/_catalogs/masterpage/_Layouts/custom/myfile.html' is not allowed in
this page.
- - - - -

Any ideas? Has anyone gotten SSI to work within MOSS?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Hema Hegde     Answered On: Nov 20

Wrong URL. It shouldn't be
/_catalogs/masterpage/_Layouts/custom/myfile.html. It should be just
_Layouts/custom/myfile.html. Are you addressing it using relative
addressing? That might be were the _catalogs/masterpage is coming from.

 
Answer #2    Answered By: Lacey Daniels     Answered On: Nov 20

> Wrong URL. It shouldn't be
> /_catalogs/masterpage/_Layouts/custom/myfile.html. It should be just
> _Layouts/custom/myfile.html. Are you addressing it using relative
> addressing? That might be were the _catalogs/masterpage is coming
from.

Using either of these:

<!-- #include file="_Layouts/custom/myfile.html" -->
Or
<!-- #include virtual="_Layouts/custom/myfile.html" -->

Produce the same error:

An error  occurred during the processing  of
/_catalogs/masterpage/mvpnew.master. The include  file
'/_catalogs/masterpage/_Layouts/custom/myfile.html' is not allowed  in
this page.

That makes sense with the virtual  syntax, as it's looking for the file
in relation to the masterpage, so it's not going to find it.

How does _Layouts/custom resolve to the 12 hive in SharePoint?

 
Didn't find what you were looking for? Find more on SSI in MOSS Or get search suggestion and latest updates.




Tagged: