I face an interesting challenge looking for some advice:
We are creating a website that should deliver contents depending upon the website visitors’ languages (at least according the webbrowsers’ preferences
So we have a site structure like this one:
/Site
/Topic 1
/Topic 1.1.
/Topic 2
The /Site folder contains these files:
index.var
index_de.html
index_en.html
While index_*.html are the content files managed by FW, index.var holds the instructions for the web server about which file to call depending upon the preferred user language.
And here is my question: Is there a way to achieve that the .var files can be integrated within the site structure pane of FW ? Maybe even having them editable with one click ?
Note that the .var files are not allowed to hold HTML contents; so it isn’t a solution to simply create a webpage in FW, which was also my first intention.
Currently I just see a way to create the site and then manually copy in the .var files into the site folder. While this surely works, it is, especially for complex websites, a time-consuming job and changes cannot applied easily (e.g. moving folders around in FW).
You might want to look at the PHP Actions for this. There is one
(can’t recall the name off-hand) that deletes all of the page layout
and only publishes whatever is in the Before HTML portion of the Page
HTML Markup dialog. You could maintain your .var page by editing in
that interface.
Another way you could do this would be to use the Upload Stuff Action
and a separate application like BBEdit or TextMate to do the coding.
Upload Stuff can publish a number of files at the same time that its
host page is published. If the files are updated in another
application, then Freeway realizes this and uploads the changed
version when you upload your site.
I face an interesting challenge looking for some advice:
We are creating a website that should deliver contents depending
upon the website visitors’ languages (at least according the
webbrowsers’ preferences
So we have a site structure like this one:
/Site
/Topic 1
/Topic 1.1.
/Topic 2
The /Site folder contains these files:
index.var
index_de.html
index_en.html
While index_*.html are the content files managed by FW, index.var
holds the instructions for the web server about which file to call
depending upon the preferred user language.
And here is my question: Is there a way to achieve that the .var
files can be integrated within the site structure pane of FW ? Maybe
even having them editable with one click ?
Note that the .var files are not allowed to hold HTML contents; so
it isn’t a solution to simply create a webpage in FW, which was also
my first intention.
Currently I just see a way to create the site and then manually copy
in the .var files into the site folder. While this surely works, it
is, especially for complex websites, a time-consuming job and
changes cannot applied easily (e.g. moving folders around in FW).
By the way, the “Upload stuff” action has been hidden at the “beta box” of freewayactions.com… just for people like me looking endless times at the action area of this site
I wasn’t suggesting that you use it to create a PHP solution – I believe it will work with any file type. It just wipes out whatever is in the page and only publishes the content of the Before HTML section of the HTML Markup dialog.http://www.softpress.com/kb/article.php?id=086
Sometime around 21/5/08 (at 09:02 -0400) waltd said:
I wasn’t suggesting that you use it to create a PHP solution – I
believe it will work with any file type. It just wipes out whatever
is in the page and only publishes the content of the Before HTML
section of the HTML Markup
dialog.http://www.softpress.com/kb/article.php?id=086
Exactly. You can name the page index.var if you like, and use that
action to strip the page of everything but what you want. I think
Walter’s suggestion could be the solution to you keeping the page
totally within the Freeway environment.