Using SSI with topstyle
Posted: Mon Jan 21, 2013 7:07 pm
Is there a trick to getting SSI to work with classic ASP and topstyle? Got mappings setup no problem but SSI are completely ignored within topstyle.
CSS HTML Validator and web development discussion (HTML, CSS, Accessibility, SEO, etc.)
https://www.htmlvalidator.com/CSS-HTML-Forum/
https://www.htmlvalidator.com/CSS-HTML-Forum/viewtopic.php?t=1746
Without preview mappings, TopStyle is previewing a LOCAL copy of the document you're editing (not a REMOTE copy of the document you're editing)SteelToad wrote:Why is it necessary to set up preview mappings ?
Are you getting an error? If yes, what error? Please be more specific.SteelToad wrote:If I set up mapping for my local directory to use the website address, then all of my previews fail.
YES, that is exactly the behavior I would like.Without preview mappings, TopStyle is previewing a LOCAL copy of the document you're editing
You don't have to edit a live site. You can install a local web server, and then point preview mappings to http://localhostSteelToad wrote:Editing a live site is not an option for me, so I replicate the entire site locally and work on that.
No problems here. Relative paths are OK with preview mappings.SteelToad wrote:I only refer to pages and files with relative addressing instead of by a full URL. If in my index.html I use <!--#include virtual="~header.html" --> , I want it to include the local ~header.html relative to the file I am editing.
If you're using any server-side technology, then preview mappings are the way to go. Without preview mappings, you basically bypass your server technology (SSI, or ASP, or PHP, or whatever)SteelToad wrote:Preview Mappings doesn't work for me because I'm not using a local web server, but a remote one.
If you're getting a 404 then the URL is incorrect or your web server isn't running (have you tried the same URL in your web browser?)SteelToad wrote:If I map my local directory (w:/kscs) to the URL (http://kscs.info/), then I get a 404 even though index.html is present in both locations.
Server mappings are both for live site editing and local web server editing.SteelToad wrote:I understand that the Mappings feature is meant for local mapping, so this doesn't surprise me.
I realize I could install a local web server, but for a couple of reasons, I'd really rather not. Again, I understand that SSI isn't really part of TopStyle editing, but it would be really nice if it could support it by reading in the include file when the tag is detectedTopStyle Support wrote:You don't have to edit a live site. You can install a local web server ...
In my W:/kscs/ I have index.html and ~header.html. My index.html contains "<!--#include virtual="~~header.html" -->"TopStyle Support wrote:If you're getting a 404 then the URL is incorrect or your web server isn't running (have you tried the same URL in your web browser?) ---- Server mappings are both for live site editing and local web server editing.
What happens when you open http://kscs.info/ in your web browser?SteelToad wrote:If I map W:\kscs\ to http://kscs.info/ I get a page not found.
I'm getting this: 404 Safari can’t open the page. Safari can’t open the page “http://kscs.info/index.txt” because the server where this page is located isn’t responding.SteelToad wrote:I made a copy of the index.html and renamed it to index.txt if you want to take a look http://kscs.info/index.txt