Apache's content negotiation and FW

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 :wink:

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).


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

PHP Actions are here: http://softpress.com/kb and Upload Stuff is
here http://freewayactions.com

Walter

On May 21, 2008, at 8:25 AM, tobiaseichner wrote:

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 :wink:

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).


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

PHP is no choice; guess there is nothing comparable for Perl usable by FW ?

The “Upload Stuff” action looks fine, thanks for the hint. I’ll have a look at it shortly :slight_smile:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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 :wink:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, I haven’t looked at the PHP action you mentioned first, since I assumed it does something requiring PHP on the server… stupid :wink:

I gave it a try, and it works nicely so far… however it leaves the following part left in the page:

Is there a way to get rid off this line as well ?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Anyway, by chance I found another nice tool that could do the job: http://www.softpress.com/kb/article.php?id=456


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 22 May 2008, 10:21 am, tobiaseichner wrote:

Sorry, I haven’t looked at the PHP action you mentioned first, since I assumed it does something requiring PHP on the server… stupid :wink:

I gave it a try, and it works nicely so far… however it leaves the following part left in the page:

Is there a way to get rid off this line as well ?

The action is going to have to be updated for Freeway 4 (and 5) I think. Sorry, I haven’t used it in many years.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options