SnippetMaster Support Forums
Return to main website
 
April 05, 2008, 06:12:23 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 05, 2008, 06:12:23 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: SSI's are not showing up in Preview « previous next »
Pages: [1] Print
Author Topic: SSI's are not showing up in Preview  (Read 393 times)
P-INFO
Beta Tester

Posts: 15


[-] SSI's are not showing up in Preview
« on: May 22, 2006, 03:27:07 AM »

Hello,

My website will be using a bunch of Server Side Includes (SSI). Those includes will not be included in any editable snippet. However when I use SM to edit some code in a *.shtml file, everything works fine except from one little thing : the preview doesn't show the "to included" parts.

Most probably it's because the preview-window has not the shtml extension, needed for my webserver to start interpreting SSI code. Is there somewhere some piece of SM-code I could change to have the preview function generate a *.shtml file rather than the suffix it is using now ?

Hope this makes sense Smile

Patrick
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 2212

SnippetMaster Author


WWW
[-] Re: SSI's are not showing up in Preview
« Reply #1 on: May 22, 2006, 05:05:30 AM »

Hi Patrick,

Actually, the preview system doesn't create any file at all when it does the preview.   Basically,when you click the preview button it "submits" the editor form(s) to the SnippetMaster program. Snippetmaster then gets a "copy" of your webpage into memory and then adds the new snippet text to your webpage, and displays it in a new window.

There is no file created, so your web server does not know it should do any file processing.

I'm not sure what is the best way to make this work with SSI... what I might be able to do is tell snippetmaster to get the contens of your webpage AFTER the server has processed it.  This way, the SSI would be processed and it would work ok...

I hope this makes sense.  Let me know what you think of that idea and I can try to take a closer look to see if it will work.

Report to moderator   Logged
P-INFO
Beta Tester

Posts: 15


[-] Re: SSI's are not showing up in Preview
« Reply #2 on: May 22, 2006, 05:44:03 AM »

Hello Henri,


Makes perfectly sense to me. Whatever you can do to make this work will make me happy ..... Laughing


Take care,
Patrick
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 2212

SnippetMaster Author


WWW
[-] Re: SSI's are not showing up in Preview
« Reply #3 on: May 22, 2006, 05:46:31 AM »

Can you send me an email with:

1)  A link to this thread.
2) Your ftp un/pw.

I'll grab a copy of your webpage with the includes in it, and then try to add this functionality to snippetmaster.  I'm not sure it will work, but I'll do my best!

Smile
Report to moderator   Logged
danno

Posts: 32


[-] Re: SSI's are not showing up in Preview
« Reply #4 on: May 23, 2006, 09:38:36 AM »

Yeah, I have the same issue with using php includes. Using preview, none of my headers, footers, menus, etc. show up, just the content area. Would be great if the preview could get the content after the server processes it like Henri suggests.
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: SSI's are not showing up in Preview « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!