| Pages: [1] |
|
|
Author |
Topic: SSI's are not showing up in Preview (Read 393 times) |
|
P-INFO
Beta Tester
Posts: 15
|
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
Patrick
|
|
|
|
|
admin
Forum Administrator

Posts: 2212
SnippetMaster Author
|
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.
|
|
|
|
|
|
P-INFO
Beta Tester
Posts: 15
|
Hello Henri,
Makes perfectly sense to me. Whatever you can do to make this work will make me happy .....
Take care,
Patrick
|
|
|
|
|
admin
Forum Administrator

Posts: 2212
SnippetMaster Author
|
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!
|
|
|
|
|
|
danno
Posts: 32
|
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.
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|